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

Merge Next.js into main #3116

Merged
merged 149 commits into from
Jun 12, 2023
Merged

Merge Next.js into main #3116

merged 149 commits into from
Jun 12, 2023

Conversation

Vinnl
Copy link
Collaborator

@Vinnl Vinnl commented Jun 12, 2023

References:

Jira: MNTOR-1620

Description

This contains all the changes in the nextjs branch, with main merged into it. Most of it should already have been reviewed, but I also had to resolve a bunch of conflicts, so it's probably good if a couple of folks give it a quick scan-through to see if anything odd jumps out, and maybe run it locally as well?

It is also currently deployed to https://fx-breach-alerts.herokuapp.com.

Vinnl and others added 30 commits May 11, 2023 16:27
Command run: npx create-next-app@latest
Unfortunately, since the ReactLocalization object contains
functions, it can't be shared between client and server (because
functions can't be serialized), so in effect every page that uses
localisation has to be a client component.

But at least we can set the correct `lang` attribute on <html> on
the server, so there's that :)
Did not do: breach icons and getLocale() (for list and date
formatting).
This allows our pages to be Server Components now.
It still doesn't work at the moment because the correct redirect
URL hasn't yet been set up on FxA.
Port over the existing landing page
To test, add the following two variables to your .env:

  NEXTAUTH_URL=http://localhost:6060
  NEXTAUTH_SECRET=<generate using `openssl rand -base64 32`>

You can then add <SignInButton/> to e.g. the landing page to kick
off authentication.
@Vinnl Vinnl self-assigned this Jun 12, 2023
Copy link
Contributor

@maxxcrawford maxxcrawford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but posting up issues I found that should fix before launch:

  • "Verify Email Address" Email: Not attaching images correctly
  • Breach logos not showing on /breaches cards
  • Long load / Flash of Unstyled Content (FOUC) on dashboard page

Shout out to the entire team for getting this work wrapped up so fast!

@rhelmer rhelmer merged commit b569933 into main Jun 12, 2023
5 checks passed
@rhelmer rhelmer deleted the nextjs-merged branch June 12, 2023 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants