-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnuxt.config.ts
101 lines (99 loc) · 2.26 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
import '@total-typescript/ts-reset'
import { sentryVitePlugin } from '@sentry/vite-plugin'
import { version } from './package.json'
const appName = 'WebAPI check'
const appDescription = 'Simply open this page and get an instant overview of the WebAPIs that are supported on your current device. WebAPI requirements, specs, live tests, and more...'
export default defineNuxtConfig({
runtimeConfig: {
indexable: true,
public: {
siteUrl: 'https://webapicheck.com',
siteName: appName,
siteDescription: appDescription,
xProfile: 'https://twitter.com/toniengelhardt',
repoUrl: 'https://github.com/toniengelhardt/webapicheck',
sentryDSN: process.env.SENTRY_DSN,
},
},
experimental: {
componentIslands: true,
headNext: true,
},
site: {
name: appName,
description: appDescription,
url: 'https://webapicheck.com',
defaultLocale: 'en-US',
titleSeparator: '·',
trailingSlash: false,
},
modules: [
'@nuxt/eslint',
'@nuxtjs/color-mode',
'@nuxtjs/plausible',
'@nuxtjs/seo',
'@unocss/nuxt',
'@vueuse/nuxt',
'nuxt-icon',
],
typescript: {
shim: false,
},
css: [
'assets/postcss/style.postcss',
],
postcss: {
plugins: {
'cssnano': false,
'postcss-nested': {},
},
},
app: {
head: {
htmlAttrs: {
lang: 'en',
translate: 'no', // Avoid translation.
},
bodyAttrs: {
class: 'text-base bg-base',
},
meta: [
{ name: 'keywords', content: 'WebAPI, WebAPI test, Modern Web, Open Web' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico', key: 'favicon' },
],
},
},
vite: {
build: {
sourcemap: true,
},
plugins: [
// Sentry Vite plugin needs to be after all other plugins.
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'webapicheck',
project: 'webapp',
release: {
name: version,
},
telemetry: false,
}),
],
},
nitro: {
routeRules: {
'/': { prerender: false },
},
},
colorMode: {
classSuffix: '',
},
sitemap: {
sources: ['/api/__sitemap__/urls'],
},
plausible: {
domain: 'webapicheck.com',
},
})