lactf / lactf-website

LA CTF hosted by ACM Cyber & Psi Beta Rho! Website for the largest annual cybersecurity competition at UCLA! Whether you are tackling your first exploit or have professional experience, there will be challenges just right for you!
https://lac.tf/
10 stars 4 forks source link

Fix build on Node 18+ #43

Closed Arc-blroth closed 1 year ago

Arc-blroth commented 1 year ago

The squoosh library is apparently unmaintained and doesn't work on node 18+ This Next.js RFC recommends switching to sharp instead, which fixes the build and compresses our images better as a bonus!

Arc-blroth commented 1 year ago

actually wait why are all the images broken

Arc-blroth commented 1 year ago

i forgor that yarn build uses the prod website as the prefix for all paths :skull: temporarily editing the assetPrefix in next.config.js shows that Sharp does in fact work this should be ready to merge