Niklas
TTCTheo's Typesafe Cult
•Created by Niklas on 11/8/2024 in #questions
Nextjs Route Cache using Tags (ISR)
Hey, I was just wondering if it is possible to use tags for full routes in next. Usually when I implement some ISR logic, I do something like this
Then I can do
revalidatePath('/products')
to invalidate the cache.
Now I ended up building a nice caching system for my data cache using using "next/cache" and tags. I have some webhooks in place that invalidate tags and therefore refresh my data. My question is: can I also tag pages with some string value(s)? So that I can revalidate them with the same revalidateTag
call?
I personally prefer this way as it allows you to specify what data a route depends on in the route itself. Otherwise when I update some data, I have to think of all routes that use it and revalidate the paths one by one. Later one seems much more error prone to me.3 replies
TTCTheo's Typesafe Cult
•Created by Niklas on 8/15/2023 in #questions
Having issues deploying my t3 app to production using docker
Hi everyone, I am having trouble deploying my T3 app to my linux server when using docker and the
output: "standalone"
option.
I have written a full description of that error on stackoverflow so maybe someone can help me out here or there. Thanks a lot
https://stackoverflow.com/questions/76905472/network-issues-with-nextjs-t3-app-and-docker-on-production-environment-typeer4 replies