docs: add js docs

This commit is contained in:
2026-05-06 19:01:58 +08:00
parent 5d84cf0589
commit d663cc5d20
3 changed files with 13 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
# Backend API Base URL
VITE_API_BASE_URL=/api
# Redux persistent storage location, use `local` for local storage and `session` for session storage
VITE_REDUX_STORAGE=local
+8
View File
@@ -1,6 +1,14 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
/**
* Redux persistent storage location, use `local` for local storage and `session` for
* session storage
*/
readonly VITE_REDUX_STORAGE: "local" | "session"
/**
* Backend API Base URL
*/
readonly VITE_API_BASE_URL: string
}
-9
View File
@@ -11,14 +11,5 @@ export default defineConfig({
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})