64 lines
1.1 KiB
TypeScript
64 lines
1.1 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
|
|
modules: [
|
|
"@lewebsimple/nuxt-graphql",
|
|
"@nuxt/eslint",
|
|
"@nuxt/ui",
|
|
"@nuxtjs/seo",
|
|
"nuxt-auth-utils",
|
|
],
|
|
|
|
components: {
|
|
dirs: [
|
|
{ path: "~/components", pathPrefix: false },
|
|
],
|
|
},
|
|
|
|
devtools: { enabled: true },
|
|
|
|
css: ["~/assets/css/_main.css"],
|
|
|
|
site: {
|
|
url: "https://wp-headless.ledevsimple.ca",
|
|
name: "WP Headless",
|
|
defaultLocale: "fr",
|
|
},
|
|
|
|
ui: {
|
|
colorMode: false,
|
|
},
|
|
|
|
compatibilityDate: "2026-01-01",
|
|
|
|
eslint: {
|
|
config: {
|
|
stylistic: {
|
|
arrowParens: true,
|
|
commaDangle: "always-multiline",
|
|
indent: 2,
|
|
quotes: "double",
|
|
semi: true,
|
|
},
|
|
},
|
|
},
|
|
|
|
graphql: {
|
|
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"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
sitemap: {
|
|
zeroRuntime: true,
|
|
},
|
|
|
|
});
|