-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
86 lines (74 loc) · 1.65 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
// @ts-expect-error No types are available for this package.
import colors from "tailwindcss/colors"
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
ssr: true,
devtools: {
enabled: true,
},
runtimeConfig: {
public: {
siteName: "Scrum Poker",
version: "v1.2.1",
https: !!+(process.env.HTTPS ?? 0),
backendEndpoint: process.env.BACKEND_ENDPOINT,
},
},
app: {
rootAttrs: {
id: "app",
class: "flex flex-col flex-1",
},
head: {
titleTemplate: "%s | Scrum Poker",
},
},
experimental: {
componentIslands: true,
},
modules: [
"@vueuse/nuxt",
"@nuxtjs/tailwindcss",
"nuxt-security",
"@nuxtjs/seo",
"@nuxt/icon",
"@nuxt/image",
"@formkit/auto-animate",
],
tailwindcss: {
config: {
content: ["nuxt.config.ts", "components"],
theme: {
colors: {
primary: colors.blue,
info: colors.sky,
success: colors.green,
warning: colors.amber,
danger: colors.rose,
gray: colors.zinc,
black: colors.black,
slate: colors.slate,
neutral: colors.neutral,
zinc: colors.zinc,
white: colors.white,
green: colors.green,
yellow: colors.yellow,
},
},
},
},
security: {
headers: {
contentSecurityPolicy: {
"script-src": [
"'self'",
"https:",
"https://scrum-poker.connor.nl/cdn-cgi/speculation",
"'unsafe-inline'",
"'nonce-{{nonce}}'",
],
},
},
},
})