-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnuxt.config.js
70 lines (69 loc) · 1.52 KB
/
nuxt.config.js
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
import theme from "./index";
export default theme({
telemetry: false,
important: true,
docs: {
primaryColor: "#1b58f4",
},
i18n: {
locales: () => [
{
code: "zh",
iso: "zh-CN",
file: "zh-CN.js",
name: "中文",
},
{
code: "en",
iso: "en-US",
file: "en-US.js",
name: "English",
},
],
defaultLocale: "zh",
},
buildModules: ["@nuxtjs/composition-api/module", "@nuxt/typescript-build"],
router: {
extendRoutes(routes){
const redirect = [
{
path: '/sdm',
redirect: '/sdm/readme',
},
{
path: '/serverless-devs',
redirect: '/serverless-devs/readme',
},
{
path: '/fc',
redirect: '/fc/readme',
},
{
path: '/blog',
redirect: '/blog/readme',
},
{
path: '/fc-faq',
redirect: '/fc-faq/readme',
},
]
routes.push(...redirect)
}
},
// head() {
// return {
// script: [
// {
// innerHTML: "window.__rum = { pid: 'aokcdqn3ly@f609801600af959', endpoint: 'https://aokcdqn3ly-default-cn.rum.aliyuncs.com' }",
// type: 'text/javascript',
// },
// {
// src: 'https://sdk.rum.aliyuncs.com/v2/browser-sdk.js',
// type: 'text/javascript',
// crossorigin: 'anonymous',
// }
// ],
// __dangerouslyDisableSanitizers: ['script']
// }
// }
});