-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
82 lines (79 loc) · 1.83 KB
/
nuxt.config.ts
File metadata and controls
82 lines (79 loc) · 1.83 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import { UserScope } from '@logto/nuxt'
import tailwindcss from '@tailwindcss/vite'
export default defineNuxtConfig({
compatibilityDate: '2025-05-15',
devtools: { enabled: true },
vite: {
plugins: [
tailwindcss()
],
build: {
target: 'esnext',
rollupOptions: {
external: ['@valibot/to-json-schema'],
},
},
},
// alias: {
// '@valibot/to-json-schema': './index-CISmcbXk.js',
// 'sury': './index-CISmcbXk.js',
// 'effect': './index-CISmcbXk.js',
// },
css: ['~/assets/css/main.css'],
nitro: {},
serverDir: 'server',
// hub: {
// },
modules: [
'@nuxt/content',
'@nuxt/eslint',
'@nuxt/fonts',
'@nuxt/icon',
'@nuxt/image',
'@logto/nuxt',
// '@nuxthub/core'
],
runtimeConfig: {
logto: {
endpoint: process.env.LOGTO_ENDPOINT,
appId: process.env.LOGTO_APP_ID,
appSecret: process.env.LOGTO_APP_SECRET,
cookieEncryptionKey: process.env.LOGTO_COOKIE_SECRET,
postCallbackRedirectUri: process.env.LOGTO_BASE_URL + '/auth/callback',
resource: [process.env.LOGTO_RESOURCE!],
scopes: [UserScope.Email, ...process.env.LOGTO_SCOPES!.split(',')],
pathnames: {
signIn: '/auth/signin',
signOut: '/auth/signout',
callback: '/auth/callback'
}
},
public: {
boardDebug: process.env.BOARD_DEBUG,
}
},
fonts: {
defaults: {
weights: [400, 700],
fallbacks: {
monospace: ['Inconsolata'],
serif: ['Noto Serif SC', 'Noto Serif TC']
}
},
families: [
{
name: 'Inconsolata',
provider: 'google'
},
{
name: 'Noto Serif SC',
provider: 'google'
},
{
name: 'Noto Serif TC',
provider: 'google',
}
]
}
})