You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I cannot set various different settings dynamically for the build process.
Example: When i set analytics settings in quartz.config.ts i do it using hardcoded host and website ID
Describe the solution you'd like
being able to add .env.local file for local development build and set environmental variables on the hosting platform (Cloudflare pages for example).
And then reference those in quartz.config.ts file as process.env.UMAMI_HOST
The text was updated successfully, but these errors were encountered:
Can't you just pass the environment file as parameter with --env-file?
that should work, thanks for the tip!
will try and get back here in a bit.
i guess an alternative approach would be to include https://github.com/motdotla/dotenv which would abstract it for .env* files to be automatically loaded into the runtime
Can't you just pass the environment file as parameter with --env-file?
just tried, that approach does not work. the way the cli helpers like npx quartz build are build - they are not passing through additional options. For env variables support to work we'd need to change BuildArgv and add the actual logic of loading that file in the runtime processes
Is your feature request related to a problem? Please describe.
I cannot set various different settings dynamically for the build process.
Example: When i set analytics settings in
quartz.config.ts
i do it using hardcoded host and website IDDescribe the solution you'd like
being able to add
.env.local
file for local development build and set environmental variables on the hosting platform (Cloudflare pages for example).And then reference those in
quartz.config.ts
file asprocess.env.UMAMI_HOST
The text was updated successfully, but these errors were encountered: