Good morning,
I am trying to get my project from localhost to be live on your servers, but seems that is impossible for some reason that now i think that i can’t do anything about it, i will try to explain:
I followed those steps here: https://github.com/netlify/next-on-netlify#installation
I also could simulate after install npm install -g netlify-cli
and npm run build && netlify dev
, all the routes works fine!
So localhost was working fine, I could simulate using your the command netlify dev
, that opened a production environment on port 8888, everything works perfectly.
netlify.toml
[build]
command = "npm run build"
functions = "out_functions"
publish = "out_publish"
[dev]
functions = "out_functions"
publish = "out_publish"
framework = "#static"
Steps to get the issue
- I just deployed using the git push command
- I try to access the same route that i can access on localhost (localhost:8888/api/notes)
- On live is strubloid.netlify.app, so I am trying to access strubloid.netlify.app/api/notes
Using postman
- created a GET for the URL strubloid.netlify.app/api/notes
- response: {“errorMessage”:“2020-09-22T13:18:00.962Z 6bec56c8-725c-4597-b1af-303822d6485d Task timed out after 10.01 seconds”}
Using the nextjs on my application
- Project Github: https://github.com/strubloid/strubloid-on-nextjs
- Try to access: https://strubloid.netlify.app/scrapbook
- Response: {“errorMessage”:“2020-09-22T13:43:06.865Z 848f959f-ffc4-4894-b463-d91e79c6ff43 Task timed out after 10.01 seconds”}
If you want to see how i am calling the API route, you can check this file:
Questions
- Do we need to open any firewall rule on netifly?
- Am I having this because i am not subscribed to the service paying the price?
- Am I missing the port on the url strubloid.netlify.app to be able to get the API route?
Its been 3 days trying to get this to work, now its time to ask for help, I hope that someone can help me out!
Thank you!