Skip to content

Env Variables and Modes #15303

Jan 20, 2023 · 4 comments · 15 replies
Discussion options

You must be logged in to vote

Implemented out of the box support for .env files, as follows:

Order matters!

# quasarMode can be: spa | pwa | electron | capacitor | cordova | bex | ssr

.env                                                       # loaded in all cases
.env.local                                              # loaded in all cases, ignored by git
.env.[dev|prod]                                    # loaded for dev or prod only
.env.local.[dev|prod]                           # loaded for dev or prod only, ignored by git
.env.[quasarMode]                              # loaded for specific Quasar CLI mode only
.env.local.[quasarMode]                     # loaded for specific Quasar CLI mode only, ignored by gi…

Replies: 4 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@MilosPaunovic
Comment options

@gnidustotalus
Comment options

@MilosPaunovic
Comment options

@gnidustotalus
Comment options

@rotu
Comment options

Comment options

You must be logged in to vote
3 replies
@gnidustotalus
Comment options

@rstoenescu
Comment options

@gnidustotalus
Comment options

Comment options

You must be logged in to vote
5 replies
@rstoenescu
Comment options

@ricar2ce
Comment options

@nicobao
Comment options

@rstoenescu
Comment options

@rstoenescu
Comment options

Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment