feat(config): Support Setting Base Path in .env
* This uses loadEnv to load an environment file at configuration time. * Documentation: * https://vitejs.dev/config/#environment-variables * More on environment files: * https://vitejs.dev/guide/env-and-mode.html * `VIKUNJA_FRONTEND_BASE` is the variable in the environment file that will be used to set Vite’s base option. * This adds a commented example to .env.local.example Signed-off-by: Jef Oliver <jef@eljef.me>
This commit is contained in:
@ -1,8 +1,13 @@
|
||||
# Duplicate this file and remove the '.example' suffix.
|
||||
# Adjust the values as needed.
|
||||
# (1) Duplicate this file and remove the '.example' suffix.
|
||||
# Naming this file '.env.local' is a Vite convention to prevent accidentally
|
||||
# submitting to git.
|
||||
# For more info see: https://vitejs.dev/guide/env-and-mode.html#env-files
|
||||
|
||||
VITE_IS_ONLINE=true
|
||||
VITE_WORKBOX_DEBUG=false
|
||||
SENTRY_AUTH_TOKEN=YOUR_TOKEN
|
||||
SENTRY_ORG=vikunja
|
||||
SENTRY_PROJECT=frontend-oss
|
||||
# (2) Comment in and adjust the values as needed.
|
||||
|
||||
# VITE_IS_ONLINE=true
|
||||
# VITE_WORKBOX_DEBUG=false
|
||||
# SENTRY_AUTH_TOKEN=YOUR_TOKEN
|
||||
# SENTRY_ORG=vikunja
|
||||
# SENTRY_PROJECT=frontend-oss
|
||||
# VIKUNJA_FRONTEND_BASE=/custom-subpath
|
Reference in New Issue
Block a user