-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
76 lines (76 loc) · 2.6 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
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@nuxtjs/tailwindcss',
'@vueuse/nuxt',
// 'vue-notion/nuxt'
'@nuxt/image',
'nuxt-disqus'
],
build: {
transpile: ['vue-notion'],
},
runtimeConfig: {
NOTION_POST_DATABASE_ID: process.env.NOTION_POST_DATABASE_ID,
NOTION_API_KEY: process.env.NOTION_API_KEY,
public: {
BLOG_NAME: "YJack's blog",
GITHUB_PAGE: 'https://github.com/YJack0000/nuxt-notion-blog',
LINKEDIN_PAGE: 'https://www.linkedin.com/in/宇傑-鄭-3941181a3',
NOTION_ABOUT_PAGE: 'page_by_slug_17c6e514c9a549659e7775e5d17546b5',
NOTION_ABOUT_PAGE_BLOCK: '4bc3731306444831b824c95c7a6ad868',
DISQUS_SHORTNAME: process.env.NUXT_PUBLIC_DISQUS_SHORTNAME,
},
},
css: ['@/assets/styles/vue-notion-dark.css'],
disqus: {
shortname: process.env.NUXT_PUBLIC_DISQUS_SHORTNAME,
},
// image: {
// domains: ['www.notion.so']
// },
routeRules: {
'/': { prerender: true },
'/about': { prerender: true },
"/articles/post/**": { headers: { 'Cache-Control': `public, max-age=${1800}` } }
},
app: {
head: {
htmlAttrs: {
lang: 'zh',
},
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
title: "YJack's blog",
meta: [
{
name: 'description',
content:
'這是一個用 Nuxt.js、Tailwindcss、Notion 作為資料庫、Vercel 作為部署平台的個人網站。用來存放文章與個人資料。',
},
{
name: 'og:title',
content: "YJack's blog",
},
{
name: 'og:description',
content:
'這是一個用 Nuxt.js、Tailwindcss、Notion 作為資料庫、Vercel 作為部署平台的個人網站。用來存放文章與個人資料。',
},
{
name: 'og:type',
content: 'website',
},
{
name: 'og:url',
content: 'https://yjack0000.cerana.tech',
},
{
name: 'og:image',
content: '/img/og.png',
},
],
},
},
})