I believe you can do that with QEnv app extension: https://github.com/quasarframework/app-extension-qenv
That way you could have build flavors depending on the env you use, and check those in code.