Next.js Discord

Discord Forum

Leerob's isr page - "Data has been fresh for:"

Unanswered
Nile Crocodile posted this in #help-forum
Open in Discord
Avatar
Nile CrocodileOP
its not showing any time :/ but as shown in the video it was showing time

what could be the problem ?
Image

72 Replies

Avatar
Nile CrocodileOP
Can someone help?
Avatar
Can you send the repo link?
Avatar
Nile CrocodileOP
wait
@Anay-208 its the timer
not sure why its not working
😔
do i have to make some tweaks
Avatar
are you sure you haven't done any changes?
Avatar
Nile CrocodileOP
nope
😣 ✋
Avatar
let me check it out locally
Avatar
Nile CrocodileOP
alright
its not working on my vps
and i havent checked locally
im not using vercel as i was thinking how to self host nextjs
Avatar
self host vercel?
Avatar
Nile CrocodileOP
my bad
Avatar
if you mean nextjs, then you can, I think there is a deploy script given
Avatar
Nile CrocodileOP
well yes but
everything is working
except that timer
:chadthink:
Avatar
Is that time working in dev?
Avatar
Nile CrocodileOP
yuhp
🤔
what could be the reason ?
Avatar
I'm trying it out
Avatar
Nile CrocodileOP
alright
thanks for your time anay
😸 🙏
Avatar
its working for me
Image
Whats your OS
Avatar
Nile CrocodileOP
locally ? or on the vps ?
locally it works perfectly fine
but on vps (alpine) it doesnt seem to work
do you think its related to NEXT_PUBLIC_SAFE_KEY & SECRET_KEY ?
i dont think so
Avatar
GitHub codespace
Avatar
Nile CrocodileOP
interesting
i guess i should just sleep
and do this after i wake up
thanks anay
😸 will ping you later
thanks for your time means a lot
Avatar
1the only env I added was DATABASE_URL
Avatar
Nile CrocodileOP
i am mainly using
external database url
and database url
Avatar
I just used one
Avatar
Nile CrocodileOP
well the db route doesnt work with just one
u need an external database url
as well
isr is not related to database url
Avatar
Maybe try Ubuntu
Avatar
Nile CrocodileOP
the distro is not a problem here
i am using ubuntu for building and
alpine for runtime as its the lightest and the best
its some env which im missing
not sure what
Avatar
I just added DATABASE_URL env, and also created the tables mentioned in README.md. And nothing else
and ran docker container for setup
Avatar
Nile CrocodileOP
well its working for you locally right ?
its running on my docker
yes
it runs perfectly in my docker
and
without docker as well
Avatar
I'm using github codespaces, but it shouldn't make much of a difference
Avatar
Nile CrocodileOP
not sure
but it works