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

Move baaahs.org to nextJS #37

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

SiriusZael
Copy link
Contributor

theFront came with a NextJS version. This PR changes our code to use the nextJS routing and runtime instead of react and react dev tools.

Some things of note:

  • The way fonts are loaded has been updated, be sure to use the var() syntax
  • routing is based on the file system structure
  • redirects are in next.config.js
  • NextJS renders serverside by default, so anything using something from the browser, such as the document global or event handling must be flagged by using the 'use client' directive
  • cleaned up all the old theFront files we weren't using

@xian
Copy link
Member

xian commented Apr 30, 2024

Does this mean we need to run node on the server? @tomseago are we already doing that? Or does it prerender as a build step?

@tomseago
Copy link
Member

tomseago commented May 8, 2024

@xian you are correct. The hosting is a static set of files not a server side application server. We've been intending to add that when we start adding a server side API for whatever reasons but it will take some additional infrastructure engineering. The earliest that engineering could happen would be next week.

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.

3 participants