docs: add js docs
This commit is contained in:
@@ -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
|
||||||
Vendored
+8
@@ -1,6 +1,14 @@
|
|||||||
/// <reference types="vite/client" />
|
/// <reference types="vite/client" />
|
||||||
interface ImportMetaEnv {
|
interface ImportMetaEnv {
|
||||||
|
/**
|
||||||
|
* Redux persistent storage location, use `local` for local storage and `session` for
|
||||||
|
* session storage
|
||||||
|
*/
|
||||||
readonly VITE_REDUX_STORAGE: "local" | "session"
|
readonly VITE_REDUX_STORAGE: "local" | "session"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Backend API Base URL
|
||||||
|
*/
|
||||||
readonly VITE_API_BASE_URL: string
|
readonly VITE_API_BASE_URL: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,14 +11,5 @@ export default defineConfig({
|
|||||||
alias: {
|
alias: {
|
||||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||||
},
|
},
|
||||||
},
|
|
||||||
server: {
|
|
||||||
proxy: {
|
|
||||||
'/api': {
|
|
||||||
target: 'http://localhost:8080',
|
|
||||||
changeOrigin: true,
|
|
||||||
rewrite: (path) => path.replace(/^\/api/, '')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user