derekjwilliams / first-next-auth

https://first-next-auth-eight.vercel.app
0 stars 0 forks source link

Marigold Housing

Tech Stack

React 19 and NextJS 15 notes

Many packages have not been updated yet for React 19, to avoid errors on npm install make sure to include the --legacy-peer-deps flag, e.g.npm install --legacy-peer-deps

Safari And Authentication

Safari, sensibly, does not like using http to send sensitive data, so if you run with npm run dev Safari will complain, to work around this a script has been added to package.json that runs with the Next https server, npm run dev-https. More details on the Next --experimental-https flag can be found here: https://nextjs.org/docs/app/api-reference/next-cli

Nextjs and StyleX example project

Found here, https://github.com/facebook/stylex/blob/main/apps/nextjs-example/

Caching issues with StyleX

This problem is being worked on, but for now make sure to do an npm run predev prior to npm run dev. And run npm run prebuild prior to running npm run build. This issue is discussed here https://github.com/facebook/stylex/issues/286

Vercel deployment notes

If there is a rendering issue with fonts, then forcing the build can remedy:

npx vercel --prod -f

Feedback and issues

Please file feedback and issues over on the Supabase GitHub org.

More Supabase examples

Linking

supabase login
supabase projects list
supabase link --project-ref [ref from list]
supabase gen types typescript --linked --schema=public > utils/database.types.ts

Tanstack React Query

https://www.youtube.com/watch?v=Z4L_UE0hVmo

References: https://makerkit.dev/blog/saas/supabase-react-query

SVG Go

For optimizing SVGs https://github.com/jakearchibald/svgomg/blob/main/README.md