user home: yueque-minimal style redesign + vite /user proxy fix

This commit is contained in:
chunyu
2026-08-09 22:42:51 +08:00
parent 2c0e884dde
commit 43c941fa67
2 changed files with 288 additions and 0 deletions
+9
View File
@@ -33,6 +33,15 @@ export default defineConfig({
target: 'http://127.0.0.1:8000',
changeOrigin: true,
},
'/user': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
bypass: (req) => {
if (req.headers.accept?.includes('text/html')) {
return req.url;
}
},
},
},
},
plugins: [react()],