manifest/nuxt/nuxt.config.js

81 lines
1.9 KiB
JavaScript
Raw Normal View History

export default defineNuxtConfig({
// Global page headers: https://go.nuxtjs.dev/config-head
app: {
head: {
2023-09-30 20:14:02 +02:00
title: 'Jugofuturistični manifest',
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', type: 'image/x-icon', href: '/favicon.ico' },
2024-01-06 17:54:42 +01:00
{ rel: 'stylesheet', type: 'text/css', href: '/css/fonti.css' }
]
}
},
imports: {
dirs: ['stores']
},
modules: [
['@pinia/nuxt', { autoImports: ['defineStore', 'acceptHMRUpdate']}],
'@nuxtjs/i18n'
//'nuxt-proxy'
],
hooks: {
'pages:extend' (pages) {
pages.push({
name: 'pojem_poglej',
path: '/manifest/:pojemid',
file: '~/pages/manifest/pojem.vue'
}, {
name: 'pojem_uredi',
path: '/manifest/:pojemid/uredi/:guid',
file: '~/pages/manifest/pojem.vue'
}, {
name: 'pojem_dodaj',
path: '/manifest/dodaj/:guid',
file: '~/pages/manifest/dodaj.vue'
})
}
},
proxy: {
options: {
target: process.env.BASE_URL,
changeOrigin: true,
pathFilter:
process.env.FILE_PATH
}
},
runtimeConfig: {
public: {
baseUrl: process.env.BASE_URL,
jsonapiPath: process.env.JSONAPI_PATH,
2023-09-30 20:14:02 +02:00
etherpadUrl: process.env.ETHERPAD_URL,
etherpadPrefix: process.env.ETHERPAD_PREFIX
}
},
i18n: {
locales: [{
2024-04-01 19:59:09 +02:00
code: 'sl',
file: 'sl.json'
}, {
code: 'en',
file: 'en.json'
}, {
code: 'hr',
file: 'hr.json'
}, {
code: 'es',
file: 'es.json'
}, {
code: 'de',
file: 'de.json'
}],
langDir: 'lang',
2024-04-01 19:59:09 +02:00
defaultLocale: 'sl',
fallbackLocale: 'sl'
}
})