-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
68 lines (65 loc) · 1.86 KB
/
nuxt.config.ts
File metadata and controls
68 lines (65 loc) · 1.86 KB
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
import { execSync } from 'node:child_process';
import { fileURLToPath } from 'node:url';
function resolveCorelliTrioSonatasSha() {
try {
return execSync(`cd corelli-trio-sonatas && git rev-parse --short=7 HEAD`, { encoding: 'utf8' }).toString().trim();
} catch {
return '';
}
}
const corelliTrioSonatasSha = resolveCorelliTrioSonatasSha();
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: false },
modules: ['@nuxt/content', '@nuxt/ui', '@nuxtjs/i18n', '@pinia/nuxt'],
css: ['~/assets/css/main.css'],
runtimeConfig: {
public: {
corelliTrioSonatasSha,
},
},
app: {
head: {
meta: [
{ name: 'robots', content: process.env.DEPLOY_ENV === 'prod' ? 'all' : 'noindex' },
],
},
},
vite: {
worker: {
format: 'es',
},
optimizeDeps: {
exclude: ['verovio'],
},
},
i18n: {
strategy: 'prefix_except_default',
locales: [
{ code: 'de', language: 'de-DE', file: 'de.yaml', dir: 'ltr' },
],
defaultLocale: 'de',
langDir: 'locales/',
},
colorMode: {
preference: 'light',
},
nitro: {
routeRules: {
'/kern/**': { prerender: false },
},
publicAssets: [
{
baseURL: 'kern/corelli-trio-sonatas',
dir: fileURLToPath(new URL('./corelli-trio-sonatas/kern', import.meta.url)),
maxAge: 3600,
},
{
baseURL: 'kern/annotated-corelli-trio-sonatas',
dir: fileURLToPath(new URL('./corelli-trio-sonatas/annotated-kern', import.meta.url)),
maxAge: 3600,
},
],
},
});