refactor: update to nuxt-graphql 0.5.x
This commit is contained in:
@@ -44,15 +44,16 @@ export default defineNuxtConfig({
|
||||
},
|
||||
|
||||
graphql: {
|
||||
context: "server/graphql/context.ts",
|
||||
schemas: {
|
||||
wp: {
|
||||
type: "remote",
|
||||
url: `${process.env.NUXT_WP_URL || "https://wp-headless.ledevsimple.ca"}/graphql`,
|
||||
middleware: "server/graphql/wp-middleware.ts",
|
||||
yoga: {
|
||||
context: ["~~/server/graphql/context"],
|
||||
schemas: {
|
||||
wp: {
|
||||
type: "remote",
|
||||
url: `${process.env.NUXT_WP_URL || "https://wp-headless.ledevsimple.ca"}/graphql`,
|
||||
hooks: ["~~/server/graphql/wp-hooks"],
|
||||
},
|
||||
},
|
||||
},
|
||||
saveSdl: "server/graphql/schema.graphql",
|
||||
},
|
||||
|
||||
sitemap: {
|
||||
|
||||
Reference in New Issue
Block a user