some cleanup and gqlgen setup
This commit is contained in:
23
houdini.config.js
Normal file
23
houdini.config.js
Normal 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;
|
||||
Reference in New Issue
Block a user