-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
52 lines (49 loc) · 1.23 KB
/
Copy pathnuxt.config.ts
File metadata and controls
52 lines (49 loc) · 1.23 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
import { execSync } from 'node:child_process';
function getCurrentCommitSha() {
try {
return execSync(`git rev-parse --short=7 HEAD`, { encoding: 'utf8' }).toString().trim();
} catch {
return '';
}
}
const currentCommitSha = getCurrentCommitSha();
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: false },
runtimeConfig: {
public: {
currentCommitSha,
},
},
modules: ['@nuxt/content', '@nuxt/ui', '@pinia/nuxt', '@nuxtjs/i18n'],
css: ['~/assets/main.css', 'vue-lite-youtube-embed/style.css'],
i18n: {
strategy: 'prefix_except_default',
locales: [
{ code: 'de', language: 'de-DE', file: 'de.yaml', dir: 'ltr' },
],
defaultLocale: 'de',
langDir: 'locales/',
},
colorMode: {
preference: 'light',
},
vite: {
worker: {
format: 'es',
},
optimizeDeps: {
exclude: ['verovio'],
},
},
ui: {
theme: {
colors: [
'primary',
'secondary',
'neutral',
],
},
}
});