diff --git a/packages/frontend/src/index.html b/packages/frontend/src/index.html index f4bda5006f..251b450952 100644 --- a/packages/frontend/src/index.html +++ b/packages/frontend/src/index.html @@ -15,7 +15,7 @@
- - + + diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index f9103a4f06..067b4fab1e 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -44,18 +44,28 @@ function toBase62(n: number): string { export function getConfig(): UserConfig { return { root: "src", + publicDir: "assets", server: { port: 5173, proxy: { '/api': { + changeOrigin: true, target: 'http://127.0.0.1:3000/', }, + '/assets': { target: 'http://127.0.0.1:3000/', }, '/twemoji': { target: 'http://127.0.0.1:3000/', }, + '/sw.js': { + target: 'http://127.0.0.1:3000/', + }, + '/streaming': { + target: 'ws://127.0.0.1:3000/', + ws: true, + }, } },