how do i check if the mode is spa mode or capacitor #16293
Answered
by
rstoenescu
eimihar
asked this question in
CLI - Capacitor / Cordova modes
-
or something like platform.quasar.is.spa I tried using process.env in one of my component but it's not available through quasar build, or even after i import (import * as process from "process") Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
rstoenescu
Sep 6, 2023
Replies: 1 comment 2 replies
-
how are you using it? https://quasar.dev/quasar-cli-vite/handling-process-env#introduction |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The "process.env" is not empty. For security reasons, trying to print it out as is will indeed show nothing. However, when used in its full form (
process.env.<...something...>
it will be replaced with the correct content and you will be able to print it out). More information is available in the "handling process env" page under the "Troubleshooting" section (for q/app-vite or for q/app-webpack.