some cleanup and gqlgen setup

This commit is contained in:
2024-11-01 19:55:30 +05:30
parent e41d27cf97
commit 1fb2d7d154
39 changed files with 5619 additions and 144 deletions

23
houdini.config.js Normal file
View File

@@ -0,0 +1,23 @@
/// <references types="houdini-svelte">
/** @type {import('houdini').ConfigFile} */
const config = {
watchSchema: {
url: process.env.GRAPH_HOST,
headers: {
Authentication() {
const token = localStorage.getItem('AUTH_TOKEN') ?? '';
return `Bearer ${token}`;
}
}
},
plugins: {
'houdini-svelte': {
projectDir: './web',
client: './web/lib/gqlClient',
include: './web/**/*.{svelte,graphql,gql,ts,js}'
}
}
};
export default config;