Skip to content

Commit

Permalink
feat: adding spectacular/role-houdini plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jul 7, 2024
1 parent 698c2d1 commit 6487166
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions apps/console/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
]
},
"build:prod": {
// "dependsOn": ["generate:prod", "^build"],
"dependsOn": ["^build"],
"dependsOn": ["generate:prod", "^build"],
"outputs": [".svelte-kit/**", ".vercel/**", "$houdini/**", "schema.graphql", "src/i18n"],
"env": [
"VERCEL",
Expand Down
1 change: 0 additions & 1 deletion packages/role-houdini/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const plugin: ClientPlugin = () => ({
const role = ctx.artifact.pluginData?.['@spectacular/role-houdini']?.role;
if (role && ctx.fetchParams?.headers) {
ctx.fetchParams.headers = { ...ctx.fetchParams.headers, 'x-hasura-role': role };
console.log(ctx.fetchParams.headers);
}
next(ctx);
},
Expand Down

0 comments on commit 6487166

Please sign in to comment.