-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
58 lines (56 loc) · 1.42 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { defineNuxtConfig } from 'nuxt/config';
import { resolve } from 'path';
export const alias: Record<string, string> = {
'@': resolve(__dirname, './'),
'@stores': resolve(__dirname, './stores'),
'@utils': resolve(__dirname, './utils'),
'@server': resolve(__dirname, './server'),
'@components': resolve(__dirname, './components'),
};
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
typescript: {
strict: true,
typeCheck: true,
},
alias,
runtimeConfig: {
public: {
name: '樱花动漫',
api: 'http://www.dm99.me',
github: 'https://github.com/arcturus-org/yhdm',
},
},
ssr: true,
modules: ['@vueuse/nuxt'],
build: {
transpile: ['vuetify'],
},
app: {
baseURL: '/',
head: {
htmlAttrs: {
lang: 'zh-cmn-Hans',
},
title: '樱花动漫-专注动漫的门户网站',
meta: [
{
name: 'keywords',
content: '樱花动漫',
},
{
name: 'description',
content: '上万集高清晰画质的在线动漫, 观看免费、无须注册、高速播放、更新及时',
},
],
link: [
{
rel: 'icon',
type: 'image/svg+xml',
href: '/favicon.svg',
},
],
},
},
css: ['~/assets/css/global.scss', 'vuetify/lib/styles/main.sass', '@mdi/font/css/materialdesignicons.min.css'],
});