-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
38 lines (38 loc) · 865 Bytes
/
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
export default defineNuxtConfig({
ssr: false,
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
},
pageTransition: { name: 'page', mode: 'out-in' },
},
css: ['@/assets/styles/main.css'],
modules: ['@nuxt/ui', '@nuxtjs/i18n', '@pinia/nuxt'],
ui: {
global: true,
},
colorMode: {
preference: 'dark',
classSuffix: '',
},
i18n: {
locales: [
{ code: 'en', file: 'en.json', name: '🇬🇧' },
{ code: 'fr', file: 'fr.json', name: '🇫🇷' },
],
// lazy: true,
langDir: 'locales/',
defaultLocale: 'en',
strategy: 'no_prefix',
},
pinia: {
autoImports: ['defineStore', ['defineStore', 'definePiniaStore']],
},
runtimeConfig: {
public: {
CHAIN: process.env.CHAIN,
COLLECTION_ID: process.env.COLLECTION_ID,
},
},
})