/
nuxt.config.ts
85 lines (83 loc) · 2.02 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
import { type PublicRuntimeConfig } from "nuxt/schema";
export const publicRuntimeConfig: PublicRuntimeConfig = {
apiUrl: "http://localhost:7000",
keycloakUrl: "http://localhost:8080/",
googleAnalyticsTag: "",
hostUrl: "http://localhost:3000"
};
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: true,
telemetry: false,
css: ["~/assets/main.less"],
build: {
transpile:
// magic needed by naive-ui:
(process.env.NODE_ENV === "production"
? [
"naive-ui",
"@css-render/vue3-ssr",
] : []).concat(
[
"vueuc",
"date-fns",
"tslib",
"@juggle/resize-observer",
"@wwtelescope/engine",
"@wwtelescope/engine-pinia",
"@wwtelescope/engine-helpers",
"@wwtelescope/engine-types",
"@wwtelescope/astro"
]),
},
modules: [
'@vueuse/nuxt',
'@dargmuesli/nuxt-cookie-control'
],
builder: "webpack",
vite: {
// magic needed by naive-ui:
optimizeDeps: {
include:
process.env.NODE_ENV === "development"
? ["naive-ui", "vueuc", "date-fns-tz/esm/formatInTimeZone", "axe-core"]
: []
}
},
runtimeConfig: {
public: publicRuntimeConfig,
},
app: {
head: {
htmlAttrs: {
lang: "en"
}
}
},
cookieControl: {
colors: {
checkboxActiveBackground: '#7fe7c4',
barButtonHoverColor: '#7fe7c4',
controlButtonHoverBackground: '#7fe7c4',
},
closeModalOnClickOutside: true,
isControlButtonEnabled: false,
isDashInDescriptionEnabled: false,
cookies: {
necessary: [
{
name: 'Functionality cookies',
description: 'These cookies are required for the website to function properly.',
},
],
optional: [
{
id: 'ga',
name: 'Google Analytics',
targetCookieIds: ['_ga', '_gid']
},
],
},
isCookieIdVisible: false,
},
});