wenish
wenish
TTCTheo's Typesafe Cult
Created by Y7YA on 3/12/2024 in #questions
NextJS Server Cache?
good question. the data did not change. the template did. symptoms are true or better said. they are objects. we have a lot of db entries while its building. (if it would be false. it would render the not found page which it dosnt) so maybe thats the problem.... but obviously if i update the page template (react component) and build and deploy the new version i want the users to see the new version and not an old page 😄
8 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 3/12/2024 in #questions
NextJS Server Cache?
@Mike
export async function getStaticProps(context: { params: { name: string } }) {
const name = context.params.name
const data = await db.symptom.findUnique()

if (!symptom) {
return {
notFound: true
}
}

return {
props: {
preFetchedData: data
},
revalidate: 60
}
}
export async function getStaticProps(context: { params: { name: string } }) {
const name = context.params.name
const data = await db.symptom.findUnique()

if (!symptom) {
return {
notFound: true
}
}

return {
props: {
preFetchedData: data
},
revalidate: 60
}
}
do you know how exactly this revalidate works? if read in the docs this would cache the page for 60 seconds and then on the next request it would render it new. but it seems this return alone isnt enough. can you put me into the right direction what else the server needs? Im hosting the site on vercel default config
8 replies
RRailway
Created by wenish on 7/14/2023 in #✋|help
Developer Plan
just to clarify. there so no pre paid service anymore?
9 replies
RRailway
Created by wenish on 7/14/2023 in #✋|help
Developer Plan
N/A
9 replies
RRailway
Created by wenish on 4/20/2023 in #✋|help
docker nginx port forwarding
yeah those i will defenitly use for the realtime game servers. but im in development phase. so some little bit mor latency is even good so i kinda already can look that the game feels good with bad ping. so then when there is good ping its even better 😄
17 replies
RRailway
Created by wenish on 4/20/2023 in #✋|help
docker nginx port forwarding
what you mean with eta?
17 replies
RRailway
Created by wenish on 4/20/2023 in #✋|help
docker nginx port forwarding
only the 100ms ping to na
17 replies
RRailway
Created by wenish on 4/20/2023 in #✋|help
docker nginx port forwarding
17 replies
RRailway
Created by wenish on 4/20/2023 in #✋|help
docker nginx port forwarding
17 replies
RRailway
Created by wenish on 4/20/2023 in #✋|help
docker nginx port forwarding
what config.conf file?
17 replies
RRailway
Created by wenish on 4/20/2023 in #✋|help
docker nginx port forwarding
b6e0630a-d349-4ebf-b98f-44c205a8b3c6
17 replies