-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathnuxt.config.js
114 lines (103 loc) · 2.9 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
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
112
113
114
import { isDevelopment } from 'std-env';
import GLSL from 'vite-plugin-glsl';
import SVGLoader from 'vite-svg-loader';
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
app: {
head: {
htmlAttrs: { lang: 'en', dir: 'ltr' },
titleTemplate: '%s | Bogdan Kostyuk',
meta: [
{ lang: 'en' },
{ language: 'English' },
{ property: 'name', name: 'name', content: 'Bogdan Kostyuk' },
{ charset: 'utf-8' },
{ 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' },
{ 'http-equiv': 'Reply-to', content: '[email protected]' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'format-detection', content: 'telephone=no' },
{ name: 'robots', content: 'all' },
{ name: 'theme-color', content: 'var(--surface-color)' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'copyrighted-site-verification', content: 'c552f044f4e41c2b' },
{
property: 'og:site_name',
name: 'og:site_name',
content: 'Bogdan Kostyuk',
},
{ property: 'og:locale', name: 'og:locale', content: 'en' },
{ property: 'og:type', name: 'og:type', content: 'website' },
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
{
rel: 'icon',
type: 'image/x-icon',
href: '/favicon.ico',
sizes: 'any',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon-32x32.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/favicon-16x16.png',
},
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
},
{ rel: 'manifest', href: '/site.webmanifest' },
],
},
},
runtimeConfig: {
public: {
base: isDevelopment
? 'http://localhost:3000'
: 'https://bogdankostyuk.xyz',
},
},
imports: {
imports: [{ name: 'on', from: 'rad-event-listener' }],
},
routeRules: {
'/sitemap.xml': { prerender: true },
'/_headers': { prerender: true },
},
sourcemap: isDevelopment,
css: [
'normalize.css/normalize.css',
'locomotive-scroll/dist/locomotive-scroll.css',
'~/assets/styles/fonts.css',
'~/assets/styles/global.css',
],
build: {
transpile: ['gsap', 'std-env'],
},
nitro: {
prerender: {
crawlLinks: true,
concurrency: 4,
},
},
modules: ['@nuxt/content', '@nuxtjs/fontaine'],
fontMetrics: {
fonts: [
{
family: 'e-Ukraine',
src: '/fonts/e-Ukraine-Thin.woff2',
fallbacks: ['Arial'],
},
],
},
vite: {
plugins: [SVGLoader({ svgo: false }), GLSL({ compress: !isDevelopment })],
},
});