feat: add mobile bottom nav, compact navbar search, update vite proxy to 8002
This commit is contained in:
+4
-5
@@ -15,9 +15,8 @@ export default defineConfig({
|
||||
],
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:8000',
|
||||
target: 'http://127.0.0.1:8002',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
bypass: (req) => {
|
||||
if (req.headers.accept?.includes('text/html')) {
|
||||
return req.url;
|
||||
@@ -25,16 +24,16 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
'/ws': {
|
||||
target: 'ws://127.0.0.1:8000',
|
||||
target: 'ws://127.0.0.1:8002',
|
||||
ws: true,
|
||||
rewrite: (path) => path.replace(/^\/ws/, ''),
|
||||
},
|
||||
'/media/': {
|
||||
target: 'http://127.0.0.1:8000',
|
||||
target: 'http://127.0.0.1:8002',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/user': {
|
||||
target: 'http://127.0.0.1:8000',
|
||||
target: 'http://127.0.0.1:8002',
|
||||
changeOrigin: true,
|
||||
bypass: (req) => {
|
||||
if (req.headers.accept?.includes('text/html')) {
|
||||
|
||||
Reference in New Issue
Block a user