-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
65 lines (65 loc) · 1.75 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: ['@nuxtjs/i18n', 'usebootstrap', "nuxt-security", '@nuxt/scripts'],
plugins: ['~/plugins/markdownFormatter.ts'],
ssr: true,
app: {
head: {
title: 'Editing Film Music',
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: 'Website for the international conference Editing Film Music, organised by the Erich Wolfgang Korngold Werkausgabe.' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
],
},
baseURL: '/website_editing-film-music/',
},
security: {
ssg: {
meta: true, // Enables CSP as a meta tag in SSG mode
hashScripts: true, // Enables CSP hash support for scripts in SSG mode
hashStyles: false, // Disables CSP hash support for styles in SSG mode (recommended)
exportToPresets: true // Export security headers to Nitro presets
},
sri: true,
headers: {
contentSecurityPolicy: {
'script-src': [
/* "'strict-dynamic'", */
"'self'", "'unsafe-inline'", "'unsafe-eval'"
]
}
}
},
css: ["~/assets/custom.scss"],
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "~/assets/_variables.scss" as *;'
}
}
},
},
i18n: {
vueI18n: "./i18n.config.ts",
locales: [
{
code: "en",
language: "en-US",
name: "English",
},
{
code: "de",
language: "de-DE",
name: "Deutsch",
},
],
defaultLocale: "de",
},
robots: { robotsTxt: false }
})