-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
66 lines (58 loc) · 1.99 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
import { defu } from 'defu'
import { setFeatures } from './features'
const ignisFeatures = setFeatures()
// https://nuxt.com/docs/guide/directory-structure/nuxt-config
const nuxtConfig = defu(ignisFeatures, {
// https://nuxt.com/docs/api/nuxt-config#compatibilitydate
compatibilityDate: '2024-12-01',
// simple eslint config - see eslint.config.mjs
eslint: {
config: {
stylistic: true,
},
},
// app configuration
runtimeConfig: {
// nitro-only secret env-like variables go here
public: {
// client-exposed env-like variables go here
// features
// NOTE: due to static-like nature of nuxt.config.ts file
// actual values MUST BE provided via .env file (or production equivalent)
ignis: {
// presets
preset: {
ui: 'off', // nuxt-ui/tailwind/off
db: 'off', // neon/supabase/off
},
// individual modules
ui: false, // true/false
tailwind: false, // true/false (ignored, if ui=true)
neon: false, // true/false
supabase: false, // true/false
i18n: {
enabled: false, // true/false
default: 'en', // default locale (should be same as formkit)
config: './i18n.config.ts', // path to config file
},
formkit: {
enabled: false, // true/false
default: 'en', // default locale (should be same as i18n)
config: './formkit.config.ts', // path to config file
},
content: false, // true/false
openprops: false, // true/false
pslo: {
enabled: false, // true/false (elrh-pslo will (not) be used)
content: false, // true/false (elrh-pslo will (not) be aplied on nuxt-content)
},
},
// logging
logLevel: 'info',
},
},
})
// https://nuxt.com/docs/getting-started/configuration#nuxt-configuration
// @ts-expect-error unknown object type
// TODO elaborate correct type for "nuxtConfig" object
export default defineNuxtConfig(nuxtConfig)