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