-
Notifications
You must be signed in to change notification settings - Fork 21
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
[ECO-2389] Render /launch
as a static page
#335
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
We should only use one geo-blocking logic. If you think the hook works great, can you replace it everywhere ?
…till consider them geoblocked by default
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.
Small readability change request. Once accepted, and you checked that it works, feel free to merge.
src/typescript/frontend/src/components/header/wallet-button/ConnectWalletButton.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Bogdan Crisan <[email protected]>
Co-authored-by: Bogdan Crisan <[email protected]>
Co-authored-by: Bogdan Crisan <[email protected]>
Description
We can make
/launch
a completely static page, making it faster to load, by making the geoblock check client-side. We'll assume the user is geoblocked while the geoblocked function check promise resolves.There may be a better way to do this, if this is too intrusive (assuming they're blocked when they're not), depending on how the banner appears.
const dynamic = "force-static"
at the top of the fileTesting
Check the build logs and ensure it's marked as a statically generated page in Vercel
Checklist