-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
64 lines (64 loc) · 1.53 KB
/
Copy pathnuxt.config.ts
File metadata and controls
64 lines (64 loc) · 1.53 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-11-01",
devtools: { enabled: true },
ssr: true,
srcDir: "src/",
modules: [
"@nuxtjs/tailwindcss",
"@pinia/nuxt",
"shadcn-nuxt",
"@nuxt/image",
"nuxt-nodemailer",
"@nuxt/scripts",
],
shadcn: {
prefix: "",
componentDir: "./src/components/ui",
},
nodemailer: {
from: "Boooks系统 <2969709268@qq.com>",
host: "smtp.qq.com",
port: 465,
secure: true,
auth: {
user: "2969709268@qq.com",
pass: "",
},
},
scripts: {
registry: {
googleAnalytics: true,
},
},
runtimeConfig: {
adminEmail: process.env.NUXT_ADMIN_EMAIL,
public: {
cosSecretID: process.env.COS_SECRET_ID,
cosSecretKey: process.env.COS_SECRET_KEY,
cosRegion: process.env.COS_REGION,
cosBucket: process.env.COS_BUCKET,
scripts: {
googleAnalytics: {
// .env
// NUXT_PUBLIC_SCRIPTS_GOOGLE_ANALYTICS_ID=<your-id>
id: "",
},
},
},
},
app: {
head: {
title: "Boooks - HEU15系资源导航",
link: [{ rel: "icon", type: "image/svg+xml", href: "/img/boooks.svg" }],
meta: [
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
name: "description",
content: "一个专注于哈尔滨工程大学核专业的资源导航网站",
},
{ name: "format-detection", content: "telephone=no" },
],
},
},
});