baseUrl updated for default themes

pull/3420/head
Bahadır Sofuoğlu 2022-12-09 15:58:51 +03:00
parent a8fc6f1d20
commit 8677a227cb
1 changed files with 4 additions and 3 deletions

View File

@ -1,24 +1,25 @@
import vueJsx from '@vitejs/plugin-vue-jsx';
const path = require('path');
const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
ssr: false,
typescript: false,
components: true,
app: {
baseURL: process.env.NODE_ENV === 'production' ? '/primevue-nuxt' : '/',
baseURL: baseUrl,
head: {
link: [
{
id: 'home-table-link',
rel: 'stylesheet',
href: '/styles/landing/themes/lara-light-blue/theme.css'
href: baseUrl + '/styles/landing/themes/lara-light-blue/theme.css'
},
{
id: 'theme-link',
rel: 'stylesheet',
href: `/themes/lara-light-blue/theme.css`
href: baseUrl + `/themes/lara-light-blue/theme.css`
}
]
}