-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
58 lines (55 loc) · 1.82 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
const metaTitle = 'Gencaster'
const siteUrl = 'https://gencaster.org/'
const metaDescription
= 'A non-linear audio streaming framework for real-time radiophonic experiences and live music.'
const siteImage = {
url: '/ogimage.png',
height: 630,
width: 1200,
type: 'image/png',
}
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
ssr: true,
app: {
pageTransition: { name: 'page', mode: 'out-in' },
head: {
title: metaTitle,
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: metaDescription },
// Twitter Card data
{ name: 'twitter:title', content: metaTitle, hid: 'co' },
{ name: 'twitter:description', content: metaDescription, hid: 'co' },
{ name: 'twitter:image', content: siteImage.url, hid: 'co' },
// Open Graph
{ property: 'og:title', content: metaTitle, hid: 'co' },
{ property: 'og:description', content: metaDescription, hid: 'og:description' },
{ property: 'og:type', content: 'Website' },
{ property: 'og:url', content: siteUrl },
{ property: 'og:image', content: siteImage.url, hid: 'og:image' },
{ property: 'theme-color', content: '#FFFFFF' },
// google search console
{ name: 'google-site-verification', content: '5dE39ihRPtzuModjqcgOzLcwneqgXbWz6_kokjM9jrc' },
],
},
},
components: true,
// content: {
// documentDriven: true,
// },
modules: ['@nuxt/content'],
css: ['assets/scss/main.scss'],
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import "assets/scss/variables.scss"; @import "assets/scss/mixins.scss";
`,
},
},
},
},
})