Hey Community,
I am fairly new to NextJS and Vercel but having a blast thus far.
However I am stuck. I have my app deployed to a subdomain, eg https://app.somedomain.com
The app part works but I have recently introduced a rest endpoint into this mix.
Locally I can hit the endpoint through localhost:3000/api/bookings but when I try to perform the post to the production site I get a 308 Permanent redirect.
Is there something specific that I have to enable or set somewhere to get it to work on the Vercel hosting?
I've seen some posts where the solution was to add www in front of the url in the request but since this is running on subdomain already this is not an option.
I hope I have given enough context.
Eben