-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
61 lines (58 loc) · 1.45 KB
/
Copy pathnuxt.config.ts
File metadata and controls
61 lines (58 loc) · 1.45 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
import { defineNuxtConfig } from 'nuxt/config'
import { version } from './package.json'
// only add `router.base = '/<repository-name>/'` if `DEPLOY_ENV` is `GH_PAGES`
const routerBase = process.env.DEPLOY_ENV === 'GH_PAGES' ? '/polychrome.p5/' : ''
export default defineNuxtConfig({
compatibilityDate: '2025-08-17',
ssr: false,
runtimeConfig: {
public: {
appVersion: version
}
},
app: {
baseURL: process.env.NUXT_APP_BASE_URL || routerBase,
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: `${routerBase.replace(/\/$/, '')}/favicon.ico` }
]
}
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [
'@/assets/css/main.scss',
'@/assets/css/core.css',
'@/assets/css/graphik.css'
],
/*
** Plugins to load before mounting the App
*/
plugins: [
{ src: '~/plugins/setFocus', mode: 'client' }
],
/*
** Nuxt.js modules
*/
modules: [
'@nuxt/fonts',
'~/modules/font-loader'
],
postcss: {},
fonts: {
families: [
{ name: 'Tiempos Headline', src: '/fonts/Tiempos-Headline-Semibold.woff2', weight: '400' }
]
}
})