forked from rash0/Vue-Ecom
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.js
55 lines (55 loc) · 1.41 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
43
44
45
46
47
48
49
50
51
52
53
54
55
// 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", 'nuxt-primevue', '@nuxt/image',],
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"]],
},
primevue: {
components: {
prefix: 'Prime',
include: ['Slider', 'Panel', 'Checkbox', 'Card', 'ScrollTop'] /* Used as <PrimeSlider> ... /> */
}
},
css: [
"~/assets/styles/main.scss",
"primevue/resources/themes/lara-light-blue/theme.css",
"primeicons/primeicons.css"
],
build: {
transpile: ["primevue"]
},
render: {
csp: {
hashAlgorithm: "sha256",
policies: {
"script-src": ["'self'", "*.vercel-insights.com"],
},
addMeta: true,
},
},
});