NextJs 16 -> clicking on next/link returns text/html instead of application/json
Unanswered
Segugio dell'Appennino posted this in #help-forum
Segugio dell'AppenninoOP
Migrated to
Using [sst.dev](https://sst.dev/) for deploying NextJs application which uses opennext to package nextjs
Previously,
User hovers over a link -> a prefetch request is sent, response is empty object {}
User then clicks the link -> a request is sent to /_next/data/..../abc.json and the response is of type
Now,
Everything works fine locally,
On Production however,
User hovers over a link -> a prefetch request is sent, response is empty object {}
User then clicks the link -> a request is sent to /_next/data/..../abc.json and the response is of type
NextJs 16 pages router from NextJs 14 pages routerUsing [sst.dev](https://sst.dev/) for deploying NextJs application which uses opennext to package nextjs
Previously,
User hovers over a link -> a prefetch request is sent, response is empty object {}
User then clicks the link -> a request is sent to /_next/data/..../abc.json and the response is of type
application/json ; PageProps presentNow,
Everything works fine locally,
On Production however,
User hovers over a link -> a prefetch request is sent, response is empty object {}
User then clicks the link -> a request is sent to /_next/data/..../abc.json and the response is of type
text/html and pageProps are empty {}