feat: Initial GraphQL setup with remote WP schema
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
export default defineNuxtConfig({
|
||||
|
||||
modules: [
|
||||
"@lewebsimple/nuxt-graphql",
|
||||
"@nuxt/eslint",
|
||||
"@nuxt/ui",
|
||||
],
|
||||
@@ -20,13 +21,6 @@ export default defineNuxtConfig({
|
||||
colorMode: false,
|
||||
},
|
||||
|
||||
devServer: {
|
||||
https: {
|
||||
key: process.env.LOCAL_HTTPS_KEY,
|
||||
cert: process.env.LOCAL_HTTPS_CERT,
|
||||
},
|
||||
},
|
||||
|
||||
compatibilityDate: "2026-01-01",
|
||||
|
||||
eslint: {
|
||||
@@ -40,4 +34,14 @@ export default defineNuxtConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
graphql: {
|
||||
schemas: {
|
||||
wp: {
|
||||
type: "remote",
|
||||
url: `${process.env.NUXT_WP_URL || "https://wp-headless.ledevsimple.ca"}/graphql`,
|
||||
},
|
||||
},
|
||||
saveSdl: "server/graphql/schema.graphql",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user