-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
88 lines (85 loc) · 2.22 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
87
88
import { fileURLToPath } from "node:url";
import { defineNuxtConfig } from "nuxt/config";
import { manifestFileName, metadata, openGraphImageName } from "./config/metadata.config";
export default defineNuxtConfig({
alias: {
"@": fileURLToPath(new URL("./", import.meta.url)),
},
app: {
head: {
htmlAttrs: {
lang: "en",
},
link: [
{ href: "/favicon.ico", rel: "icon", sizes: "any" },
{ href: "/apple-touch-icon.png", rel: "apple-touch-icon" },
{ href: "/" + manifestFileName, rel: "manifest" },
],
meta: [
{ name: "description", content: metadata.description },
{ property: "og:type", content: "website" },
{ property: "og:title", content: metadata.title },
{ property: "og:site_name", content: metadata.title },
{ property: "og:description", content: metadata.description },
{ property: "og:image", content: "/" + openGraphImageName },
{ property: "og:locale", content: metadata.locale },
process.env.NUXT_PUBLIC_GOOGLE_SITE_VERIFICATION
? {
name: "google-site-verification",
content: process.env.NUXT_PUBLIC_GOOGLE_SITE_VERIFICATION,
}
: {},
],
},
},
components: false,
css: [
"@fontsource-variable/roboto-flex/standard.css",
"tailwindcss/tailwind.css",
"@/styles/index.css",
],
imports: {
autoImport: false,
},
modules: ["@nuxt/image"],
nitro: {
compressPublicAssets: true,
prerender: {
routes: ["/sitemap.xml"],
},
},
postcss: {
plugins: {
"tailwindcss/nesting": "postcss-nesting",
tailwindcss: {},
autoprefixer: {},
},
},
routeRules: {
"/": { static: true },
"/about": { static: true },
"/imprint": { static: true },
},
runtimeConfig: {
NODE_ENV: process.env.NODE_ENV,
public: {
NUXT_PUBLIC_API_BASE_URL: process.env.NUXT_PUBLIC_API_BASE_URL,
NUXT_PUBLIC_APP_BASE_URL: process.env.NUXT_PUBLIC_APP_BASE_URL,
NUXT_PUBLIC_BOTS: process.env.NUXT_PUBLIC_BOTS,
NUXT_PUBLIC_MATOMO_BASE_URL: process.env.NUXT_PUBLIC_MATOMO_BASE_URL,
NUXT_PUBLIC_MATOMO_ID: process.env.NUXT_PUBLIC_MATOMO_ID,
NUXT_PUBLIC_REDMINE_ID: process.env.NUXT_PUBLIC_REDMINE_ID,
},
},
typescript: {
shim: false,
strict: true,
tsConfig: {
compilerOptions: {
paths: {
"@/*": ["./*"],
},
},
},
},
});