#cannot preview Serverless Functions

18 messages · Page 1 of 1 (latest)

trim quarry
#

Maybe before the new Date(something).toISOString(), console.log the id of the page and that something value

#

There will be one something value that is not a valid time

#

We generally don’t encourage private help here

tulip aspen
trim quarry
tulip aspen
#

id is dynamic routes

trim quarry
#

There is at least one id that throws

tulip aspen
trim quarry
#

why that is the case is a bug in your code, you need to fix that

#

btw you are not supposed to fetch your own api endpoints inside getServerSideProps; run sql queries inside gssp directly

#

also, revoke your current database credentials

#

and make new db credentials

tulip aspen
trim quarry
#

i don't use this database so i can't do that, sorry

#

you can ask maybe chatgpt