-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
77 lines (68 loc) · 2.17 KB
/
nuxt.config.ts
File metadata and controls
77 lines (68 loc) · 2.17 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
import tailwindcss from "@tailwindcss/vite";
export default defineNuxtConfig({
compatibilityDate: "2025-07-15",
devtools: { enabled: true },
app: {
pageTransition: { name: "page", mode: "out-in" },
layoutTransition: { name: "layout", mode: "out-in" },
head: {
title: "声致发光 · SonoLight",
htmlAttrs: {
lang: "zh-CN",
},
meta: [
{ name: "viewport", content: "width=device-width, initial-scale=1.0" },
// SEO 优化
{ name: "og:title", content: "声致发光 · SonoLight" },
{
name: "og:description",
content:
"声致发光,一项用于收集 、分类、描述 、储存 、维护各服务器(目前仍在或未在运营的服务器)和个人的相关存档 、机器 或 建筑投影以及 Minecraft 相关的衍生赛博资产的项目",
},
{ name: "og:type", content: "website" },
{ name: "og:url", content: "https://app.sonolight.wiki/" },
{ name: "og:site_name", content: "声致发光" },
{ name: "og:locale", content: "zh_CN" },
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
},
},
// experimental: {
// viewTransition: true
// },
modules: [
"@nuxt/icon",
"@pinia/nuxt",
"pinia-plugin-persistedstate/nuxt",
"@nuxt/content",
'@tresjs/nuxt',
],
css: ["~/assets/main.css"],
// icon: {
// customCollections: [
// {
// prefix: "sonoicon-id",
// dir: "./app/icons/identity/*"
// },
// ]
// },
vite: {
plugins: [tailwindcss()],
define: {
'global': 'globalThis',
},
resolve: {
alias: {
buffer: 'buffer/',
},
},
build: {
rollupOptions: {
external: ['three'],
},
},
},
tres: {
glsl: false,
},
});