rewrite: TS monorepo — pi SDK stateless agents, Postgres+pg-boss, SvelteKit themed UI; legacy moved to legacy/
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user