Skip to content

Move baaahs.org to nextJS#37

Open
SiriusZael wants to merge 2 commits intomainfrom
mrucker-upgrade-to-next14
Open

Move baaahs.org to nextJS#37
SiriusZael wants to merge 2 commits intomainfrom
mrucker-upgrade-to-next14

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