This commit is contained in:
2024-10-21 23:11:45 +08:00
parent ff90ca3851
commit d4fa0d212c
5 changed files with 286 additions and 253 deletions

View File

@@ -10,6 +10,7 @@ export default defineConfig({
plugins: [react()],
css: {
postcss: {
// @ts-ignore
plugins: [nesting, tailwindcss, autoprefixer],
},
},
@@ -31,7 +32,7 @@ export default defineConfig({
rewrite: (path) => path.replace(/^\/api/, '/api'),
},
'/api/router': {
target: 'ws://localhost:3003',
target: 'ws://localhost:3000',
changeOrigin: true,
ws: true,
rewriteWsOrigin: true,