https://brotli.pro/benefits.json
Add .json to any SSR pages
Eg: /apples ---> /apples.json
Nothing ¯_(ツ)_/¯
but.. it could be nice to return specific data as JSON object
Return empty JSON Object : {}
Bug or maybe a future awesome feature :thinking:
Shopify do the same with /orders ----> /orders.json and it's awesome for debugging
Thanks for reporting! It's not related to pages though but generally to 404 requests (Depending on the extension/data type).
It's a feature of https://github.com/nuxt/serve-placeholder to reduce workload for 404 requests so they don't go through the whole Nuxt SSR cycle, e.g. for robots.txt, json, images and so on.
You can also disable that behavior (if you really want to) through https://nuxtjs.org/api/configuration-render#fallback ☺️
Most helpful comment
Thanks for reporting! It's not related to pages though but generally to 404 requests (Depending on the extension/data type).
It's a feature of https://github.com/nuxt/serve-placeholder to reduce workload for 404 requests so they don't go through the whole Nuxt SSR cycle, e.g. for robots.txt, json, images and so on.
You can also disable that behavior (if you really want to) through https://nuxtjs.org/api/configuration-render#fallback ☺️