generated from pascalmartineau/wp-skeleton
feat: Initial Nuxt app
This commit is contained in:
81
wp-content/themes/ccat/nuxt.config.ts
Normal file
81
wp-content/themes/ccat/nuxt.config.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
const isDev = process.env.NODE_ENV === "development";
|
||||
|
||||
export default defineNuxtConfig({
|
||||
modules: [
|
||||
"@nuxt/eslint",
|
||||
"@nuxt/ui",
|
||||
"@nuxthub/core",
|
||||
"@nuxtjs/device",
|
||||
"@nuxtjs/robots",
|
||||
"@nuxtjs/sitemap",
|
||||
"@vueuse/nuxt",
|
||||
"nuxt-auth-utils",
|
||||
"nuxt-graphql-middleware",
|
||||
"nuxt-svgo",
|
||||
],
|
||||
|
||||
components: {
|
||||
dirs: [
|
||||
{ path: "~/components", pathPrefix: false },
|
||||
],
|
||||
},
|
||||
|
||||
devtools: { enabled: true },
|
||||
css: ["~/assets/css/main.css"],
|
||||
|
||||
site: {
|
||||
indexable: true,
|
||||
url: "https://cultureat.ca",
|
||||
name: "Conseil de la culture de l'Abitibi-Témiscamingue",
|
||||
},
|
||||
|
||||
ui: {
|
||||
colorMode: false,
|
||||
},
|
||||
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
},
|
||||
},
|
||||
|
||||
future: { compatibilityVersion: 4 },
|
||||
compatibilityDate: "2025-03-01",
|
||||
|
||||
nitro: {
|
||||
preset: "cloudflare_module",
|
||||
},
|
||||
|
||||
hub: {},
|
||||
|
||||
eslint: {
|
||||
config: {
|
||||
stylistic: {
|
||||
arrowParens: true,
|
||||
commaDangle: "always-multiline",
|
||||
indent: 2,
|
||||
quotes: "double",
|
||||
semi: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
graphqlMiddleware: {
|
||||
graphqlEndpoint: process.env.NUXT_GRAPHQL_ENDPOINT || "https://wp.cultureat.ca/graphql",
|
||||
downloadSchema: isDev,
|
||||
schemaPath: "server/graphql/schema.graphql",
|
||||
},
|
||||
|
||||
robots: {
|
||||
sitemap: [
|
||||
"/sitemap.xml",
|
||||
],
|
||||
},
|
||||
|
||||
sitemap: {},
|
||||
|
||||
svgo: {
|
||||
autoImportPath: "~/assets/svg/",
|
||||
componentPrefix: "svg",
|
||||
defaultImport: "component",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user