Поправил package и отображение картинок в продакшене

This commit is contained in:
Ilia Miheev
2026-06-06 08:44:45 +03:00
parent f43c22d636
commit 26a207d61e
6 changed files with 27 additions and 10 deletions
+8
View File
@@ -0,0 +1,8 @@
export function publicPath(relativePath) {
if (!relativePath) {
return relativePath
}
const path = relativePath.replace(/^\.\//, '').replace(/^\//, '')
return `${import.meta.env.BASE_URL}${path}`
}