sharezone-app icon indicating copy to clipboard operation
sharezone-app copied to clipboard

Add a warning for preview web apps

Open Jonas-Sander opened this issue 2 years ago • 2 comments

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

Jonas-Sander avatar Feb 06 '22 13:02 Jonas-Sander

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?

nilsreichardt avatar Feb 06 '22 14:02 nilsreichardt

Sounds good, I would maybe define it as DEPLOYMENT_STAGE instead of just STAGE

Jonas-Sander avatar Feb 06 '22 14:02 Jonas-Sander