rewrite: TS monorepo — pi SDK stateless agents, Postgres+pg-boss, SvelteKit themed UI; legacy moved to legacy/

This commit is contained in:
ai-chess
2026-10-18 15:32:39 +03:00
parent e23a07f07b
commit 5be4bd1da4
321 changed files with 37840 additions and 158 deletions
+24
View File
@@ -0,0 +1,24 @@
import adapter from '@sveltejs/adapter-static';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
const backend = process.env.BACKEND_URL ?? 'http://localhost:7833';
export default defineConfig({
plugins: [
sveltekit({
compilerOptions: {
runes: ({ filename }) => (filename.split(/[/\\]/).includes('node_modules') ? undefined : true)
},
adapter: adapter({ fallback: 'index.html', strict: false })
})
],
server: {
proxy: {
'/api': backend,
'/media': backend,
'/assets': backend,
'/ws': { target: backend.replace(/^http/, 'ws'), ws: true }
}
}
});