-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
65 lines (65 loc) · 1.35 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-12-20",
devtools: { enabled: true },
modules: [
"@nuxt/devtools",
"@nuxtjs/tailwindcss",
"@nuxt/eslint",
"@vueuse/nuxt",
"radix-vue/nuxt",
"nuxt-security",
"@nuxt/icon",
"@nuxt/image",
"@nuxt/fonts",
],
tailwindcss: {
cssPath: "~/assets/css/main.css",
configPath: "~/tailwind.config.mjs",
},
postcss: {
plugins: {
cssnano: {
preset: "default",
},
},
},
image: {
quality: 80,
format: ["webp"],
},
app: {
head: {
title: "Hello, World!",
titleTemplate: "%s - Nuxt3 Boilerplate",
link: [{ rel: "icon", type: "image/png", href: "/favicon.png" }],
htmlAttrs: {
lang: "en",
},
},
},
security: {
headers: {
crossOriginEmbedderPolicy:
process.env.NODE_ENV === "development" ? "unsafe-none" : "require-corp",
},
basicAuth: {
enabled: false,
name: "test",
pass: "test",
message: "Basic Auth Required",
},
},
runtimeConfig: {
public: {
buildAt: new Date().toLocaleString("nb-US", {
timeZone: "Europe/Helsinki",
}),
environment: process.env.ENVIRONMENT || "local",
},
},
typescript: {
strict: true,
},
telemetry: false,
});