mirror of
https://github.com/wweir/sower.git
synced 2026-10-21 05:51:38 +00:00
- internal/admin: session-cookie auth server, rule CRUD API, bounded per-domain traffic stats with pre-parse byte accounting - cmd/sower: wrap proxied connections and DNS queries into stats, serve the admin console on its own listener - web/: Svelte 5 + Vite admin console with shadcn-svelte UI and an advanced breadcrumb header (section/context dropdowns, favorites), embedded via go:embed and committed to web/dist - Makefile: sower build depends on the frontend build (bun); sowerd does not - docs: ARCHITECTURE, README, and plan updated for the admin surface
19 lines
471 B
TypeScript
19 lines
471 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
$lib: fileURLToPath(new URL('./src/lib', import.meta.url)),
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
emptyOutDir: true,
|
|
},
|
|
})
|