-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
111 lines (93 loc) · 2.35 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// https://nuxt.com/docs/api/configuration/nuxt-config
const PUBLIC_SITE_URL = import.meta.env.NUXT_PUBLIC_SITE_URL || 'https://storacha.network'
export default defineNuxtConfig({
router: {
options: {
scrollBehaviorType: 'smooth',
},
},
routeRules: {
// excluded from sitemap and robots, remove these when populated and ready for indexing
'/privacy': { index: false },
'/terms': { index: false },
},
css: [
'@unocss/reset/tailwind.css',
],
modules: [
'@nuxt/eslint',
'@nuxt/content',
'@vueuse/nuxt',
'@unocss/nuxt',
'@nuxtjs/fontaine',
'@nuxtjs/plausible',
'@nuxtjs/seo',
'@nuxt/image',
'@nuxt/scripts',
],
eslint: {
config: {
standalone: false,
},
},
typescript: {
typeCheck: true,
},
features: {
inlineStyles: false,
},
ogImage: {
// disable playwright and chromium binary downloads
// https://nuxtseo.com/og-image/guides/chromium#prerenderer-ci-chromium
compatibility: {
prerender: {
chromium: false,
},
},
},
experimental: {
// TODO: fix payload extraction for IPFS hosting
// see: https://github.com/nuxt/nuxt/issues/19478
// payloadExtraction: false,
},
sitemap: {
discoverImages: false,
exclude: [
'/__nuxt_island/**',
],
},
fontMetrics: {
// reduce CLS by calculating font metrics ahead of load
fonts: ['Epilogue', 'DM Sans', 'DM Mono'],
},
site: {
// @nuxtjs/seo
// @see https://nuxtseo.com/site-config/api/config
url: PUBLIC_SITE_URL,
name: 'Storacha - Decentralized Hot Storage Layer on Filecoin',
description: 'Storacha is a decentralized hot storage network for data at scale, offering user-owned data with decentralized permissioning and leveraging Filecoin and IPFS. Rebranded from web3.storage.',
defaultLocale: 'en-US',
identity: {
type: 'Organization',
},
twitter: '@storachanetwork',
},
runtimeConfig: {
// public runtime config
public: {
// feed URL used for /api/blog
blogFeedUrl: 'https://medium.com/feed/@storacha',
consoleUrl: import.meta.env.NUXT_PUBLIC_CONSOLE_URL || 'https://console.storacha.network',
},
},
plausible: {
autoOutboundTracking: true,
},
unocss: {
nuxtLayers: true,
},
devtools: {
enabled: true,
},
compatibilityDate: '2024-07-02',
})