-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
114 lines (112 loc) · 2.26 KB
/
nuxt.config.ts
File metadata and controls
114 lines (112 loc) · 2.26 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import { defineNuxtConfig } from "nuxt/config";
import Aura from '@primeuix/themes/aura';
import { definePreset } from '@primeuix/themes';
import { colors } from "./utils/colors";
const MyPreset = definePreset(Aura, {
semantic: {
primary: {
50: '{teal.50}',
100: '{teal.100}',
200: '{teal.200}',
300: '{teal.300}',
400: '{teal.400}',
500: '{teal.500}',
600: '{teal.600}',
700: '{teal.700}',
800: '{teal.800}',
900: '{teal.900}',
950: '{teal.950}'
},
colorScheme: {
surface: {
100: colors.beige,
200: colors.darkBeige
},
formField: {
background: colors.beige,
borderColor: colors.teal,
},
overlay: {
select: {
background: colors.beige
}
},
navigation: {
submenuIcon: {
color: colors.beige,
focusColor: colors.beige,
activeColor: colors.beige
}
},
content: {
background: colors.beige,
}
}
},
components: {
button: {
root: {
secondary: {
background: colors.beige,
activeColor: colors.beige,
}
}
},
datatable: {
headerCell: {
background: colors.teal,
},
},
}
})
export default defineNuxtConfig({
app: {
head: {
link: [
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Jura:[email protected]&display=swap'
}
]
}
},
devtools: { enabled: false },
vite: {
ssr: {
external: ["@vue/devtools-kit"]
}
},
modules: [
"@nuxtjs/tailwindcss",
"@pinia/nuxt",
"@primevue/nuxt-module"
],
build: {
transpile: ['@primeuix/styles']
},
primevue: {
options: {
theme: {
preset: MyPreset
}
},
components: {
exclude: ['Form', 'FormField']
}
},
css: ['@/assets/css/globals.css'],
components: [
{ path: '~/components', pathPrefix: false },
],
ssr: true,
compatibilityDate: '2024-09-19',
routeRules: {
'/api/auth/**': { ssr: true },
},
runtimeConfig: {
authSecret: process.env.BETTER_AUTH_SECRET,
public: {
authUrl: process.env.BETTER_AUTH_URL || 'http://localhost:3000',
}
}
})