-
Notifications
You must be signed in to change notification settings - Fork 68
/
nuxt.config.js
40 lines (37 loc) · 1.36 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
export default defineNuxtConfig({
// 禁用服务端渲染
ssr: false,
// 开发模式的端口配置
devServer: {
port: 3000
},
// 运行时配置
runtimeConfig: {
public: {
apiBase: ''
}
},
nitro: {
preset: 'cloudflare_pages',
},
// 应用级配置
app: {
head: {
title: '布灵图床',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: '布灵图床 - 基于 Cloudflare 全家桶(Workers/Pages/D1/R2)打造的简单好用的个人图片托管解决方案' },
{ name: 'keywords', content: '图床,Cloudflare,Workers,Pages,D1,R2,图片托管,图片上传,免费图床' },
{ name: 'author', content: '优优Anuuu.com' },
{ property: 'og:title', content: '布灵图床 - 简单好用的个人图片托管方案' },
{ property: 'og:description', content: '基于 Cloudflare 全家桶(Workers/Pages/D1/R2)打造的简单好用的个人图片托管解决方案' },
{ property: 'og:type', content: 'website' },
{ name: 'robots', content: 'index,follow' }
],
}
},
css: [
'@/assets/css/main.css'
],
})