From ddef9cab5f5b967eef8579cd549caebdf3d661ec Mon Sep 17 00:00:00 2001 From: FruitRiin Date: Sun, 19 Nov 2023 14:22:57 +0900 Subject: [PATCH] some fix (tabler icons, sw, streaming) --- packages/frontend/src/index.html | 4 ++-- packages/frontend/vite.config.ts | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) 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, + }, } },