-
Notifications
You must be signed in to change notification settings - Fork 4
/
nuxt.config.ts
57 lines (54 loc) · 1.49 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
import { resolve, dirname } from 'node:path';
import { fileURLToPath } from 'url';
import vuetify from 'vite-plugin-vuetify';
import VueI18nVitePlugin from '@intlify/unplugin-vue-i18n/vite';
import { DiscoveryConfig } from './config/discoveryConfig';
import discoveryConfig from './config/discoveryConfig.json';
const config : DiscoveryConfig = (discoveryConfig as DiscoveryConfig);
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
meta: [{
name: config.title ?? 'OpenAtlas Discovery'
}]
}
},
runtimeConfig: {
// Keys within public, will be also exposed to the client-side
public: { }
},
modules: [
'@nuxt/image-edge',
'@nuxt/content',
(_options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig',
config => config?.plugins?.push(vuetify()));
}],
css: ['vuetify/styles',
'@mdi/font/css/materialdesignicons.min.css',
'leaflet/dist/leaflet.css'],
build: {
transpile: ['vuetify']
},
vite: {
// @ts-ignore
// curently this will lead to a type error, but hopefully will be fixed soon #justBetaThings
ssr: {
noExternal: ['vuetify'] // add the vuetify vite plugin
},
define: {
'process.env.DEBUG': false
},
plugins: [
VueI18nVitePlugin({
include: [
resolve(dirname(fileURLToPath(import.meta.url)), './locales/*.json')
]
})
]
},
image: {
domains: config.imageDomains ?? ['openatlas.eu']
}
});