-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cloudflare] New Demo Mode #2668
Conversation
✅ Deploy Preview for decent-interface-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
d5c6a12
to
0cf5ffa
Compare
46bb520
to
0cea7fc
Compare
Deploying decent-interface with Cloudflare Pages
|
0cf5ffa
to
96cc865
Compare
0cea7fc
to
b5e6d69
Compare
src/hooks/utils/useDemoMode.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sense the beginnings of an expansion of John's feature flag work in this file to account for persistence. If true, I likey.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yo this is dope now check it out
96cc865
to
bc8c422
Compare
b5e6d69
to
49e2afb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about wait for #2648 and just use VITE_APP_FLAG_DEMO_MODE=ON for param?
@johnqh not sure I follow your suggestion here. My own preference would be to continue merging this as-is (apart from any PR review of course), so that we don't lose the ability for Parker to give demos, and then deal with the merge conflicts from #2648 when they happen. |
Since we no longer have a dedicated "demo" environment in Cloudflare (all "non production environments" are the same), we need a new way to use Demo Mode.
This PR is an answer to that.
It's implemented via a
demo_mode
query param.Please append the
demo_mode=on
query param to a url in the URL bar to "turn on" demo mode for any deployment.Ex:
Also includes a button in the footer to turn it off, if it's on.
This PR also removes the
isDevMode()
functionality from the codebase. If this is being used on any @decentdao/engineering machines let me know and we can add it back in.