/// <references types="houdini-svelte">

/** @type {import('houdini').ConfigFile} */
const config = {
	watchSchema: {
		url: 'http://10.10.10.51:5500/graphql/',
		headers: {
			'X-USER-ID': (env) => env.USER_ID,
			'X-USER-PROFILE-TYPE': (env) => env.USER_PROFILE_TYPE,
			'X-OATHKEEPER-SECRET': (env) => env.OATHKEEPER_SECRET,
			'X-DJANGO-PROFILE-ID': (env) => env.DJANGO_PROFILE_ID
		}
	},
	schemaPath: './schema.graphql',
	runtimeDir: '.houdini',
	defaultCachePolicy: 'NetworkOnly',
	// Exclude Wave GraphQL files - they use urql with a separate schema
	exclude: ['src/lib/graphql/wave/**'],
	plugins: {
		'houdini-svelte': {
			client: './src/lib/graphql/client.ts',
			forceRunesMode: true
		}
	}
};

export default config;
