This repository has been archived by the owner on Jul 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
69 lines (69 loc) · 1.69 KB
/
nuxt.config.ts
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: false },
modules: ["nuxt-security", "@nuxt/image", "@nuxt/content"],
app: {
head: {
bodyAttrs: {
class: "bg-orange-500",
},
link: [
{
rel: "dns-prefetch",
href: "https://res.cloudinary.com/",
},
{
rel: "dns-prefetch",
href: "https://www.youtube-nocookie.com/",
},
],
script: [
{
async: true,
src: `https://www.googletagmanager.com/gtag/js?id=${process.env.GA_MEASUREMENT_ID}`,
},
{
innerHTML: `
window.dataLayer = window.dataLayer||[];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${process.env.GA_MEASUREMENT_ID}');
`,
},
],
},
},
image: {
quality: 80,
format: ["webp"],
cloudinary: {
baseURL: "https://res.cloudinary.com/foxington-vault/image/upload",
},
},
security: {
hidePoweredBy: true,
headers: {
crossOriginResourcePolicy: "cross-origin",
xXSSProtection: "1",
xDNSPrefetchControl: "on",
contentSecurityPolicy: {
"script-src": [
"'self'",
"'unsafe-eval'",
"'nonce-{{nonce}}'",
"https:",
"'strict-dynamic'",
],
"connect-src": ["'self'", "https:", "www.google-analytics.com"],
"img-src": ["'self'", "https:", "www.google-analytics.com"],
},
},
},
css: ["~/assets/css/main.css"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
})