-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
74 lines (69 loc) · 2.63 KB
/
Copy pathnuxt.config.ts
File metadata and controls
74 lines (69 loc) · 2.63 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
62
63
64
65
66
67
68
69
70
71
72
73
74
import { defineNuxtConfig } from 'nuxt/config'
import { fileURLToPath } from 'url'
export default defineNuxtConfig({
// https://nuxt.com/docs/getting-started/deployment#static-hosting
routeRules: {
'/': { ssr: true },
},
runtimeConfig: {
// private runtime env variables. Think of api keys: https://nuxt.com/docs/guide/going-further/runtime-config#environment-variables
// This is needed to pass the .env variables to the build process
DATASET_CONFIG_URL: import.meta.env.VITE_DATASET_CONFIG_URL,
ORGANIZATION_TTL_URL: import.meta.env.VITE_ORGANIZATION_TTL_URL,
KBO_TTL_URL: import.meta.env.VITE_KBO_TTL_URL,
// public runtime env variables
public: {
ENVIRONMENT: process.env.NUXT_ENVIRONMENT || 'Production',
DEPARTMENT: process.env.NUXT_DEPARTMENT,
BEDRIJVENTERREIN_SPARQL_ENDPOINT: process.env.NUXT_BEDRIJVENTERREIN_SPARQL_ENDPOINT ?? "https://bedrijventerreinen.vlaanderen.be/sparql/"
},
},
app: {
baseURL: '/doc',
head: {
title: 'Codelijsten',
htmlAttrs: {
lang: 'nl',
},
script: [
{
src: 'https://prod.widgets.burgerprofiel.vlaanderen.be/api/v1/node_modules/@govflanders/vl-widget-polyfill/dist/index.js',
},
{
src: 'https://prod.widgets.burgerprofiel.vlaanderen.be/api/v1/node_modules/@govflanders/vl-widget-client/dist/index.js',
},
],
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' },
],
link: [
{
rel: 'icon',
sizes: '192x192',
href: 'https://data.vlaanderen.be/assets/favicon/icons/icon-highres-precomposed.png',
},
{
rel: 'apple-touch-icon',
href: 'https://data.vlaanderen.be/assets/favicon/icons/apple-touch-icon.png',
},
],
},
},
// Alias declaration for easier access to components directory
alias: {
'@components': fileURLToPath(new URL('./components', import.meta.url)),
'@content': fileURLToPath(new URL('./content', import.meta.url)),
'@types': fileURLToPath(new URL('./types', import.meta.url)),
},
// Global CSS: https://nuxt.com/docs/api/configuration/nuxt-config#css
css: ['~/css/styles.scss'],
build: {
transpile: ['@govflanders/vl-widget-polyfill'],
},
// Plugins to run before rendering page: https://nuxt.com/docs/api/configuration/nuxt-config#plugins-1
plugins: [{ src: '~/plugins/webcomponents.js', mode: 'client' }],
compatibilityDate: '2025-02-17',
})