ishan0102 / engblogs

learn from your favorite tech companies
https://engblogs.dev
MIT License
162 stars 16 forks source link

Frontend Rewrite #43

Closed httpslinus closed 8 months ago

httpslinus commented 8 months ago

You need to add the following .env variables to run the new frontend:

SUPABASE_URL SUPABASE_KEY

both self explanatory. Previously both were available on the client with "NEXTPUBLIC", which is no longer needed as all the data is queried server-side with the Next.js app router for faster page load and greatly reducing Supabase usage. The homepage only rerenders every 30 minutes at most, which should be perfectly fine with updates only coming in every hour. The 30 minute interval can be tweaked by modifying /client/src/app/page.tsx, export const revalidate = 60 * 30;

vercel[bot] commented 8 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @ishan0102 on Vercel.

@ishan0102 first needs to authorize it.

vercel[bot] commented 8 months ago

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

Name Status Preview Comments Updated (UTC)
engblogs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2024 11:40pm
ishan0102 commented 8 months ago

lgtm