disable __data.json in SPA mode #10467
-
I'm unable to host my site in static mode because despite setting when This appears to be due to Houdini, even though I've followed these instructions: HoudiniGraphql/houdini#85. But I'm not sure. I could work around this by returning However, my host is still rewriting
This causes the following error:
because instead of getting a 404 or a Any ideas. Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
This shouldn't be happening. Can you share a minimal reproduction to help with troubleshooting this issue? |
Beta Was this translation helpful? Give feedback.
Can you try adding
static: true
to yourhoudini.config.js
file? I'm not sure what the side effects are but it seems Houdini is responsible for calling the fetch to/__data.json
even when there is no root layout load function./// <references types="houdini-svelte"> /** @type {import('houdini').ConfigFile} */ const config = { watchSchema: { url: 'https://rickandmortyapi.com/graphql/', }, plugins: { 'houdini-svelte': { + static: true, }, }, } export default config
https://houdinigraphql.com/api/config