sharezone-app
sharezone-app copied to clipboard
Add a warning for preview web apps
I think we should also add a warning in the future that its a temporary web app and that no personal data should be entered - like #27
Originally posted by @Jonas-Sander in https://github.com/SharezoneApp/sharezone-app/pull/119#issuecomment-1030728473
I think we do this with Dart environment variables. In the code, we can just use bool.fromEnvironment('STAGE')
(if is equal to preview
, show warning) and pass the stage via the build command flutter build web --release --dart-define STAGE="preview"
. Or do you have a different approach?
Sounds good, I would maybe define it as DEPLOYMENT_STAGE instead of just STAGE