Why can't I figure this PUBLIC_URL process env out

This commit is contained in:
Seth Call 2025-03-19 19:34:42 -06:00
parent dbdc5e5296
commit e4f6444d35
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
const insertStylesheet = ({ isRTL, isDark }, cb) => {
const link = document.createElement('link');
link.href = `${process.env.PUBLIC_URL}/css/theme${isDark ? '-dark' : ''}${isRTL ? '-rtl' : ''}.css`;
//link.href = `${process.env.PUBLIC_URL}/css/theme${isDark ? '-dark' : ''}${isRTL ? '-rtl' : ''}.css`;
link.href = `/css/theme${isDark ? '-dark' : ''}${isRTL ? '-rtl' : ''}.css`;
link.type = 'text/css';
link.rel = 'stylesheet';
link.className = 'theme-stylesheet';