Refactor code structure and remove redundant changes

This commit is contained in:
pacnpal
2025-08-26 13:19:04 -04:00
parent bf7e0c0f40
commit 831be6a2ee
151 changed files with 16260 additions and 9137 deletions

View File

@@ -2,7 +2,6 @@ import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import vueDevTools from 'vite-plugin-vue-devtools'
import tailwindcss from '@tailwindcss/vite'
@@ -10,7 +9,6 @@ import tailwindcss from '@tailwindcss/vite'
export default defineConfig(({ mode }) => ({
plugins: [
vue(),
vueJsx(),
vueDevTools(),
tailwindcss(),
],
@@ -22,11 +20,12 @@ export default defineConfig(({ mode }) => ({
server: {
proxy: {
'/api': {
target: 'http://127.0.0.1:8000',
target: 'http://127.0.0.1:8000/api/v1',
changeOrigin: true,
secure: false,
ws: true,
rewrite: (path) => path.replace(/^\/api/, '/api/v1')
rewrite: (path) => path.replace(/^\/api/, ''),
// Frontend calls /api/parks/ -> rewrites to /parks/ -> target adds /api/v1 -> /api/v1/parks/
}
}
},