-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
37 lines (35 loc) · 989 Bytes
/
Copy pathnuxt.config.ts
File metadata and controls
37 lines (35 loc) · 989 Bytes
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
import { execSync } from 'child_process';
const exec = (command: string) => execSync(command).toString().trim();
const repository = 'https://github.com/Virenbar/RadioRecord';
const branch = exec('git branch --show-current') || process.env.HEAD;
const hash = exec('git rev-parse HEAD') || process.env.COMMIT_REF;
const date = new Date().toISOString();
export default defineNuxtConfig({
modules: [
'@artmizu/yandex-metrika-nuxt',
'@nuxt/eslint',
'nuxt-gtag',
],
css: ['@/assets/css/styles.scss'],
runtimeConfig: {
public: { repository, branch, hash, date },
},
compatibilityDate: '2025-10-10',
// Silencing the deprecation warnings
vite: {
css: {
preprocessorOptions: {
scss: {
silenceDeprecations: ['color-functions', 'global-builtin', 'import', 'if-function'],
},
},
},
},
eslint: {
config: {
stylistic: true,
},
},
gtag: { id: 'G-J31NMXDD2E' },
yandexMetrika: { id: '87731504' },
});