Skip to content
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

WIP Update project to work with next.js #181

Closed
wants to merge 3 commits into from

Conversation

Nospamas
Copy link
Contributor

  • Bare minimum code changes required to update project to use next js with latest packages.
  • App has been marked as "use client" to make most code remain client side
  • Leaflet components must be marked as non-server renderable using dynamic()
  • Removal of process.env variables from create-react-app must be compensated for

- Bare minimum code changes required to update project to use next js with latest packages.
- App has been marked as "use client" to make most code remain client side
- Leaflet components must be marked as non-server renderable using dynamic()
- Removal of process.env variables from create-react-app must be compensated for
@Nospamas Nospamas changed the title Update project to work with next.js WIP Update project to work with next.js Jan 30, 2024
- Load config in server components and serialize by passing to client components.
- Move metadata loading down to body.
- App, Header can now be fully server rendered.
- Removes state store entirely
- Loads data in server side actions and allows it to be cached
- Large data size required a patch to next to allow > 2MB object caching (in patch file, applied during npm install)
- Does basic changes but doesn't make the app truly next best practices
@Nospamas Nospamas closed this Mar 5, 2024
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.

1 participant