-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
78 lines (66 loc) · 1.46 KB
/
nuxt.config.ts
File metadata and controls
78 lines (66 loc) · 1.46 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
import { defineNuxtConfig } from 'nuxt/config'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
app: {
baseURL: '/2026/',
head: {
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/2026/favicon.svg' },
],
},
},
nitro: {
output: {
publicDir: process.env.NUXT_OUTPUT_DIR || '.output/public',
},
},
imports: {
scan: false,
},
typescript: {
typeCheck: true,
},
modules: [
'@unocss/nuxt',
'@nuxt/content',
'@nuxt/eslint',
'@nuxt/image',
'@nuxt/icon',
'@nuxtjs/i18n',
'nuxt-gtag',
],
content: {
experimental: { nativeSqlite: true },
renderer: { anchorLinks: false },
},
eslint: {
config: { standalone: false },
},
icon: {
customCollections: [
{ prefix: 'local', dir: './app/assets/icons' },
],
class: 'icon',
},
i18n: {
locales: [
{ code: 'en', name: 'English', language: 'en-US' },
{ code: 'zh', name: '中文', language: 'zh-Hant-TW' },
],
defaultLocale: 'zh',
detectBrowserLanguage: false, // https://github.com/nuxt-modules/i18n/issues/3262
},
runtimeConfig: {
TOKEN: process.env.PRETALX_API_TOKEN,
BASE_URL: process.env.PRETALX_API_URL,
},
gtag: {
id: 'G-C9EMTMDSS1',
enabled: process.env.NODE_ENV === 'production',
config: {
page_title: 'COSCUP 2026',
},
},
})