-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
53 lines (42 loc) · 1.2 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import {fileURLToPath} from 'url';
import {dirname, join} from 'path';
import type {ModuleOptions} from "@nuxtjs/tailwindcss";
const appTitle = process.env.NUXT_PUBLIC_APP_TITLE || 'OGC RAINBOW';
const currentDir = dirname(fileURLToPath(import.meta.url))
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: {enabled: true},
future: {
compatibilityVersion: 4
},
extends:
(process.env.PREZ_LAYER_EXTENDS ?
process.env.PREZ_LAYER_EXTENDS.split(",") : []),
app: {
head: {
title: appTitle,
link: [
{ rel: 'icon', href: 'https://www.ogc.org/wp-content/uploads/2022/06/favicon_2-3.png' },
{ rel: 'apple-touch-icon', href: 'https://www.ogc.org/wp-content/uploads/2022/06/favicon_2-3.png' },
],
},
},
modules: [
'@primevue/nuxt-module',
'@nuxtjs/tailwindcss',
],
runtimeConfig: {
dynamicPagesPath: null,
public: {
prezApiEndpoint: process.env.NUXT_PUBLIC_PREZ_API_ENDPOINT,
appTitle: appTitle,
}
},
css: [
join(currentDir, './assets/css/ogc.css'),
],
tailwindcss: {
cssPath: false,
} satisfies Partial<ModuleOptions>,
})