Skip to content
Discussion options

You must be logged in to vote

Can you try adding static: true to your houdini.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

static (optional, default: false): A flag to remove the session infrastructure from your application

https://houdinigraphql.com/api/config

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@lukaso
Comment options

@lukaso
Comment options

@lukaso
Comment options

@eltigerchino
Comment options

Answer selected by lukaso
@lukaso
Comment options

@eltigerchino
Comment options

@lukaso
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants