-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
92 lines (88 loc) · 2.4 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
export default defineNuxtConfig({
devtools: { enabled: false },
routeRules: {
'/': { ssr: false },
'/live': { ssr: false },
'/slides': { ssr: false },
'/live/*': { ssr: false },
'/share/*': { ssr: true },
'/band': { ssr: false },
'/stats': { ssr: false },
'/terms-of-service': { prerender: true },
'/privacy-policy': { prerender: true },
},
modules: [
'@nuxtjs/supabase',
'@nuxtjs/tailwindcss',
'@nuxtjs/google-fonts',
[
'@pinia/nuxt',
{
autoImports: ['defineStore', 'acceptHMRUpdate'],
},
],
'nuxt-graphql-client'
],
imports: {
dirs: ['store'],
},
supabase: {
redirectOptions: {
login: '/login',
callback: '/confirm',
exclude: ['/share/*', '/live', '/live/*', '/band', '/stats', '/practise'],
}
},
runtimeConfig: {
public: {
maxVotes: process.env.NUXT_MAX_VOTES,
voteTimeout: process.env.NUXT_VOTE_TIMEOUT || "500",
conference: process.env.NUXT_CONFERENCE,
showVolume: process.env.NUXT_SHOW_VOLUME,
plausibleKey: process.env.NUXT_PLAUSIBLE_KEY,
}
},
googleFonts: {
families: {
Lato: [100, 300, 400, 500, 900],
}
},
app: {
head: {
title: "Alive and Kicking - A Vue into Rock & Roll",
htmlAttrs: {
lang: "en",
},
meta: [
{
name: "viewport",
content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
},
{
charset: "utf-8"
},
{
property: "og:image",
content: "https://res.cloudinary.com/dwfcofnrd/image/upload/c_fill,w_1920,h_1080,g_face/f_auto/q_auto/Alive%20and%20Kicking/332022097_722321479543137_5355332749224365662_n.jpg"
},
{
name: "description",
content: "This is the Vue guitar Karaoke talk. The audience can vote for a song to be played live on stage. The whole experience is done in the browser and uses Vue and Nuxt."
}
],
script: [
{
defer: "true",
//@ts-ignore
dataDomain: "aliveandkicking.dev",
src: "https://plausible.io/js/script.js"
},
{
hid: "plausible",
children: "window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }",
type: "text/javascript",
}
],
}
}
})