-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
89 lines (88 loc) · 3.59 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
* @Author : 15257184434 [email protected]
* @Date : 2023-01-15 09:13:13
* @LastEditors: 高江华
* @LastEditTime: 2024-08-24 15:48:55
* @FilePath : \varlet-nuxt3-example\nuxt.config.ts
* @Description :
*
* Copyright (c) 2023 by 15257184434 [email protected], All Rights Reserved.
*/
import { defineNuxtConfig } from 'nuxt/config';
export default defineNuxtConfig({
srcDir: 'src/',
build: {
transpile: ['dayjs']
},
components: [
{
path: '@/components/public',
extensions: ['.vue']
}
],
runtimeConfig: {
public: {
apiBaseUrl: process.env.NUXT_PUBLIC_API_BASE_URL
}
},
router: {
options: {
end: true
}
},
routeRules: {
'': { redirect: '/home' }
},
modules: ['@pinia/nuxt', '@vueuse/nuxt', '@nuxtjs/tailwindcss'],
css: ['~/assets/styles/init.css'],
app: {
head: {
charset: 'utf-8',
title: 'Gao Blog',
meta: [
{ name: 'description', content: '高江华的博客' },
{ name: 'author', content: '高江华, [email protected]' },
{
name: 'keywords',
content:
'高江华, 博客, vue, react, nuxt, next, nest, uniapp, 小程序, app, html, js, css, scss, less'
},
{ name: 'robots', content: 'index,follow' },
{ name: 'viewport', content: 'initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no' },
{ name: 'apple-mobile-web-app-title', content: '高江华的博客' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'renderer', content: 'webkit' },
{ name: 'HandheldFriendly', content: 'true' },
{ name: 'generator', content: 'VsCode Nuxt3' },
{ name: 'copyright', content: '高江华' },
{ name: 'revisit-after', content: '7 days' },
{ name: 'cache-control', content: 'no-cache' },
{ name: 'x-dns-prefetch-control', content: 'on' },
{ name: 'og:type', content: 'website' },
{ name: 'og:url', content: 'https://docs.gaojianghua.cn' },
{ name: 'og:title', content: 'Wolffy-Document' },
{
name: 'og:image',
content: 'https://gaojianghua.oss-cn-hangzhou.aliyuncs.com/home/%E7%81%B0%E5%A4%AA%E7%8B%BC.png'
},
{
name: 'og:description',
content:
'技术博客--前端后端运维知识点收录: Vue, React, Taro, ReactNative, Webpack, Vite, UniApp, 小程序, H5, Docker, Git, GoLang, Node, Nest, Mysql, Redis, 数据结构, 算法'
}
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: 'https://blog-cli.oss-cn-hangzhou.aliyuncs.com/logo.ico' },
{ rel: 'dns-prefetch', href: 'https://blog-cli.oss-cn-hangzhou.aliyuncs.com' },
{ rel: 'dns-prefetch', href: 'https://docs.gaojianghua.cn' },
{ rel: 'stylesheet', href: 'https://unpkg.com/[email protected]/Build/Cesium/Widgets/widgets.css' }
],
script: [
{
src: 'https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/svg_28150_11.961f67029185d625b7656c914468febb.js'
},
{ src: 'https://unpkg.com/cesium/Build/Cesium/Cesium.js', defer: true }
]
}
}
});