-
Notifications
You must be signed in to change notification settings - Fork 0
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
Waku integration #287
base: release
Are you sure you want to change the base?
Waku integration #287
Conversation
1ef4712
to
5c76a10
Compare
And fix all breaking changes.
To be able to view home- and 404 pages.
apps/website/package.json
Outdated
"serve": "netlify dev --cwd=. --dir=public --port=8000", | ||
"serve:proxy": "mitmproxy -p 8000 --mode reverse:http://localhost:8002/", | ||
"serve:proxied": "netlify dev --cwd=. --dir=dist/public --port=8002", | ||
"serve": "netlify dev --cwd=. --dir=dist/public --port=8000", | ||
"dev": "pnpm clean && publisher", |
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.
The clean
command is missing here I guess - Phillip responded that it has not cache right now, so there is not point to clear
, so perhaps remove it?
<ErrorBoundary | ||
onError={(error) => { | ||
if ((error as any).statusCode === 404) { | ||
window.location.reload(); |
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.
Aha, so this is the reason of https://waku.amazeelabs.dev/en/content-hub craziness 😅
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.
Yes, this has to become more solid.
if (result.state === 'success') { | ||
const rawTranslations = result.data.stringTranslations || []; | ||
const translations = { | ||
...translationsMap( |
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.
Just FYI. There is a big performance difference between [...arr1, ...arr2]
and arr1.concat(arr2)
. Can be essential on big arrays.
if (isLocale(prefix)) { | ||
setCurrentLocale(prefix); | ||
} | ||
}, [setCurrentLocale]); |
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.
Just a guess: should window.location.pathname
be passed as a dependency as well?
SLB-385: focalpoint in waku
SLB-469: redirects for RSC files
Upgrade to current rease 2024-12-06
Description of changes
Swap out Gatsby for Waku.
Motivation and context
Gatsby is not progressing and barely maintained. There is no hope that our current issues will get resolved any time soon.
Remaining issues
How has this been tested?