Need help solving error when deploying Next JS app to GITHUB pages

172 Views Asked by At

Receiving a type error: Failed to parse URL at path /

The error

Api route

utils file

I have tried adding secrets/environment variables from the .env file to github pages. I also have tried to replace all API routes with the absolute URL "localhost:300/api/...".

0

There are 0 best solutions below