raphico
raphico
TTCTheo's Typesafe Cult
Created by Nghĩa dev on 5/25/2024 in #questions
How to revalidate the data cache on deployment
I believe what you are looking for is some kind of ISR behavior. Where the page is statically generated at build time, but you can set some revalidation intervals to regenerate the page in the background to display the most up-to-date information. To enable ISR, check out this docs: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating
3 replies
TTCTheo's Typesafe Cult
Created by raphico on 4/28/2024 in #questions
Deploying a dockerized next.js app
Thanks! The approach I went for is using docker in development to mimic the production environment, ensuring consistency. But in production, I deployed the application to Vercel and used Vercel Postgres database. So basically, docker is utilized only in development. For the Dockerfile, I used the docker file provided by Theo in this documentation, https://create.t3.gg/en/deployment/docker, and used docker-compose to define and manage the application and database services. https://github.com/raphico/byte
6 replies
TTCTheo's Typesafe Cult
Created by raphico on 4/28/2024 in #questions
Deploying a dockerized next.js app
Where did you deploy the app?
6 replies
TTCTheo's Typesafe Cult
Created by raphico on 4/27/2024 in #questions
Testing in react
Thank you all for your feedback! Much appreciated 👍
8 replies
TTCTheo's Typesafe Cult
Created by raphico on 4/27/2024 in #questions
Testing in react
Oh! Thanks for your feedback. I pretty much do the same: I use Typescript and Eslint to catch potential errors in development and manually test if everything works as it should in the development environment. What I haven't used is Sentry. I'll check it out. Again thanks for your feedback! 👍
8 replies