This commit is contained in:
2024-10-21 23:10:22 +08:00
parent ff90ca3851
commit 257d7e3a56
4 changed files with 45 additions and 28 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,