-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
86 lines (86 loc) · 2.91 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
export default defineNuxtConfig({
app: {
baseURL: "/", // can override by NUXT_APP_BASE_URL
head: {
charset: "utf-8",
meta: [
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ name: "x-ua-compatible" },
{ name: "signature", content: "880f27e6d0c4daf6c6143beb568a73075f02b75d53e690e6bb79297435d7cf5a8404a4c84ba35416556b92628987d76b9067a4a4ef5d30f63b2b7d0f89b0a26b" },
{ name: "robots", content: "max-image-preview:large" },
{ name: "description", content: "" },
{ name: "keywords", content: "" },
{ name: "thumbnail", content: "https://xxxxx.xxx/assets/main-visual.png" },
{ property: "og:type", content: "" },
{ property: "og:description", content: "" },
{ property: "og:title", content: "" },
{ property: "og:url", content: "https://xxxxx.xxx" },
{ property: "og:image", content: "https://xxxxx.xxx/assets/main-visual.png" },
{ property: "og:site_name", content: "" },
{ property: "og:locale", content: "ja_JP" },
{ property: "og:app_id", content: "" },
{ property: "twitter:title", content: "" },
{ property: "twitter:url", content: "https://xxxxx.xxx" },
{ property: "twitter:description", content: "" },
{ name: "twitter:domain", content: "xxxxx.xxx" },
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:image", content: "https://xxxxx.xxx/assets/main-visual.png" },
],
link: [
{ rel: "canonical", href: "https://xxxxx.xxx" },
{ rel: "icon", href: "https://xxxxx.xxx/assets/maru.png" },
{ rel: "preconnect dns-prefetch", href: "//www.google-analytics.com" },
{ rel: "preconnect dns-prefetch", href: "//pagead2.googlesyndication.com" },
{ rel: "preconnect dns-prefetch", href: "//googleads.g.doubleclick.net" },
{ rel: "preconnect dns-prefetch", href: "//tpc.googlesyndication.com" },
{ rel: "preconnect dns-prefetch", href: "//ad.doubleclick.net" },
{ rel: "preconnect dns-prefetch", href: "//www.gstatic.com" },
{ rel: "preconnect dns-prefetch", href: "//cse.google.com" },
],
style: [],
script: [],
},
// pageTransition: {
// name: "page",
// mode: "out-in",
// },
},
modules: [
"@vueuse/nuxt",
],
nitro: {
// prerender: { // for SSR + SSG
// routes: []
// },
},
pages: true,
srcDir: "src/",
ssr: true,
telemetry: false,
typescript: {
strict: true,
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import "@/assets/styles/main.scss";
`,
},
},
},
server: {
watch: {
usePolling: true, // maybe only in WSL2
},
},
},
vue: {
compilerOptions: {
isCustomElement: (tag) => {
return tag.startsWith("Script")
},
}
},
})