Skip to content

Next.js 15 + React 19 + Happenings + dependency upgrades #1516

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

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

Conversation

SkyfallWasTaken
Copy link
Member

@SkyfallWasTaken SkyfallWasTaken commented May 21, 2025

This is a large PR! I'd guess that it'd be easier to review commit-by-commit. Do let me know if there's any way I can help :)

A large part of the changes comes down to codemods (e.g. adapting to next/link's new behaviour, updating the code to work with the latest next/image, and swapping out react-reveal for react-swift-reveal)


This PR:

  • Fixes the newsletter signup. It also now shows the latest Happenings issues
    • Please set the LOOPS_TOKEN on Vercel
    • Please also set the HAPPENINGS_SECRET_KEY - should be a random string
  • Migrates cdn.glitch.com URLs to Hack Club's CDN. Glitch is shutting down in just over a month (all web hosting services are being pulled), so this change ensures that images on the site don't break when that happens.

It also has the following development benefits to make the site easier (and faster!) to work on:

  • Upgrades to Next.js 15 with Turbopack
  • Upgrades to React 19
  • Upgrades to Yarn 4. In my experience at least, installing and adding new dependencies is a lot faster!
    • Please set ENABLE_EXPERIMENTAL_COREPACK=1 on Vercel! I've deployed this to Vercel and it works fine
  • Optimised images to improve perf
  • Cleaned up and updated dependencies
  • Swaps out react-reveal for react-swift-reveal. The reason being that unlike react-reveal, react-swift-reveal supports React 19 and has the same API surface
  • Makes the site yarn buildable in development

image

I've built the site on Vercel and it works fine. I've also tested most of the pages (shoutout to #mahads-airport for the help :D)

Copy link

vercel bot commented May 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
site ❌ Failed (Inspect) Jun 6, 2025 11:54pm

@zachlatta
Copy link
Member

Hey! Great work. This is eligible for the $50 USD for the submission.

I don't love how dark the above the fold is, but I love all the upgrades you made to the site and want to say overall - amazing work!

I don't think it's enough of a visual change to count as a redesign though. I'd love to see more visual changes.

@SkyfallWasTaken SkyfallWasTaken changed the title Next.js 15 + React 19 + homepage redesign Next.js 15 + React 19 + Happenings + dependency upgrades May 29, 2025
@SkyfallWasTaken
Copy link
Member Author

Just tested this PR with the Vercel vars and it works :D

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