-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
114 lines (99 loc) · 2.96 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
112
113
114
import { NuxtConfig } from '@nuxt/types';
// Define your configuration with auto-completion & type checking
const config: NuxtConfig = {
telemetry: false,
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
// Define the source directory of your Nuxt.js application: https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-srcdir/
srcDir: 'src',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
// titleTemplate: '%s - soundux.github.io',
title: 'Soundux',
htmlAttrs: {
lang: 'en',
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'A cross-platform soundboard' },
{
property: 'og:image',
content: 'https://raw.githubusercontent.com/Soundux/Soundux/master/assets/soundux.png',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [{ src: '~/plugins/vuetify.ts' }],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/typescript
'@nuxt/typescript-build',
// https://go.nuxtjs.dev/vuetify
'@nuxtjs/vuetify',
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: ['nuxt-i18n', 'vue-plausible'],
plausible: {
domain: 'soundux.rocks',
apiHost: 'https://analytics.soundux.rocks',
},
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
vuetify: {
defaultAssets: {
font: undefined,
icons: false,
},
theme: {
dark: true,
themes: {
dark: {
primary: '#52b18c',
},
light: {
primary: '#52b18c',
},
},
},
},
i18n: {
locales: [
{ code: 'en', iso: 'en-US', file: 'en.json' },
{ code: 'de', iso: 'de-DE', file: 'de.json' },
{ code: 'it', iso: 'it-IT', file: 'it.json' },
{ code: 'ru', iso: 'ru-RU', file: 'ru.json' },
{ code: 'uk', iso: 'uk-UA', file: 'uk.json' },
{ code: 'fr', iso: 'fr-FR', file: 'fr.json' },
{ code: 'tr', iso: 'tr-TR', file: 'tr.json' },
{ code: 'id', iso: 'id', file: 'id.json' },
{ code: 'nb', iso: 'nb-NO', file: 'nb_NO.json' },
{ code: 'pt', iso: 'pt-BR', file: 'pt_BR.json' },
],
vueI18n: {
fallbackLocale: 'en',
},
lazy: true,
langDir: 'locales/',
defaultLocale: 'en',
strategy: 'no_prefix',
detectBrowserLanguage: {
useCookie: false,
},
},
vue: {
config: {
productionTip: false,
},
},
server: {
host: '0.0.0.0',
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {},
};
export default config;