Skip to content

Conversation

@pmelab
Copy link
Contributor

@pmelab pmelab commented Jun 23, 2024

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?

  • Manually
  • Unit tests
  • Integration tests

@pmelab pmelab force-pushed the lagoon-waku branch 3 times, most recently from 1ef4712 to 5c76a10 Compare June 25, 2024 14:08
@pmelab pmelab changed the title Lagoon waku Waku integration Jun 27, 2024
"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",
Copy link
Contributor

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();
Copy link
Contributor

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 😅

Copy link
Contributor Author

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(
Copy link
Contributor

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]);
Copy link
Contributor

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?

chore: upgrade storybook to 8.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants