-
Notifications
You must be signed in to change notification settings - Fork 58
/
nuxt.config.js
42 lines (42 loc) · 1.05 KB
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
pageTransition: { name: "page", mode: "out-in" },
head: {
charset: "utf-8",
viewport: "width=device-width, initial-scale=1",
},
},
imports: {
dirs: ["store"],
},
modules: ["@nuxt/devtools", "@pinia/nuxt"],
extends: ["nuxt-seo-kit"],
routeRules: {
"/**": { robots: "index, follow" },
},
runtimeConfig: {
public: {
siteUrl:
process.env.NUXT_PUBLIC_SITE_URL || "https://vue-ecom.vercel.app",
siteName: "V-Store",
siteDescription:
"A Full StoreFront built with Nuxt 3 + Pinia 2 + Bootstrap 5....",
language: "en-US",
},
},
plugins: [{ src: "~/plugins/vercel.ts", mode: "client" }],
pinia: {
autoImports: ["defineStore", ["defineStore", "definePiniaStore"]],
},
css: ["~/assets/styles/main.scss"],
render: {
csp: {
hashAlgorithm: "sha256",
policies: {
"script-src": ["'self'", "*.vercel-insights.com"],
},
addMeta: true,
},
},
});