From 8677a227cb761ee044c90701cdd8db33db5f3dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Fri, 9 Dec 2022 15:58:51 +0300 Subject: [PATCH] baseUrl updated for default themes --- nuxt.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 09e265db1..0b954cacc 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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` } ] }