forked from kingwrcy/moments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
39 lines (39 loc) · 1.18 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: false },
runtimeConfig: {
public: {
commentEnable:process.env.MOMENTS_COMMENT_ENABLE || "true",
showComment:process.env.MOMENTS_SHOW_COMMENT || "true",
commentMaxLength: process.env.MOMENTS_COMMENT_MAX_LENGTH || "120",
commentOrderBy: process.env.MOMENTS_COMMENT_ORDER_BY || "desc",
toolbarEnableDouban: process.env.MOMENTS_TOOLBAR_ENABLE_DOUBAN || "true",
toolbarEnableMusic163: process.env.MOMENTS_TOOLBAR_ENABLE_MUSIC163 || "true",
toolbarEnableVideo: process.env.MOMENTS_TOOLBAR_ENABLE_VIDEO || "true",
maxLine: process.env.MOMENTS_MAX_LINE || "4",
},
},
modules: ["@nuxtjs/tailwindcss", "shadcn-nuxt", "@nuxtjs/color-mode"],
css: ["~/assets/css/index.css"],
colorMode: {
classSuffix: "",
},
shadcn: {
/**
* Prefix for all the imported component
*/
prefix: "",
/**
* Directory that the component lives in.
* @default "./components/ui"
*/
componentDir: "./components/ui",
},
nitro: {
esbuild: {
options: {
target: "esnext",
},
},
},
});