-
Notifications
You must be signed in to change notification settings - Fork 16
/
nuxt.config.ts
89 lines (77 loc) · 2.17 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import process from 'node:process'
const PUBLIC_SITE_URL = process.env.NUXT_PUBLIC_SITE_URL || 'https://ipfs.tech'
const PUBLIC_BLOG_URL = 'https://blog.ipfs.tech'
// strip out the protocol and trailing slash
const PUBLIC_DOMAIN = PUBLIC_SITE_URL.replace(/(^\w+:|^)\/\//, '').replace(/\/$/, '')
export default defineNuxtConfig({
routeRules: {
'/ipfs-404.html': { prerender: true },
},
app: {
// TODO: fix relative and dynamic base paths for IPFS hosting
// baseURL: process.env.NODE_ENV === 'production' ? './' : '/',
head: {
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
},
css: [
'@unocss/reset/tailwind.css',
'@/assets/css/index.css',
],
modules: [
'@nuxt/content',
'@vueuse/nuxt',
'@unocss/nuxt',
'@nuxtjs/plausible',
'@vueuse/motion/nuxt',
],
extends: [
'nuxt-seo-kit',
],
features: {
inlineStyles: false,
},
experimental: {
// TODO: fix payload extraction for IPFS hosting
// see: https://github.com/nuxt/nuxt/issues/19478
// payloadExtraction: false,
componentIslands: true,
},
linkChecker: {
// TODO: enable once these issues are resolved
// https://github.com/harlan-zw/nuxt-link-checker/issues/2
// https://github.com/harlan-zw/nuxt-link-checker/issues/13
failOn404: false,
},
sitemap: {
exclude: [
'/__nuxt_island/**',
'/help/',
'/team/',
'/docs/**',
'/privacy/',
'/companion-privacy/',
],
},
runtimeConfig: {
public: {
// seoKit
siteUrl: PUBLIC_SITE_URL,
siteName: 'IPFS',
siteTitle: 'An open system to manage data without a central server',
siteDescription: 'IPFS is a modular suite of protocols for addressing, routing, and transferring data, designed from the ground up with the principles of content addressing and peer-to-peer networking.',
trailingSlash: true,
siteImage: '/images/social-card.png',
language: 'en-US',
// seoKit
blogUrl: PUBLIC_BLOG_URL,
plausible: {
domain: PUBLIC_DOMAIN,
},
},
},
devtools: {
enabled: true,
},
})