Поправил package и отображение картинок в продакшене
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export function publicPath(relativePath) {
|
||||
if (!relativePath) {
|
||||
return relativePath
|
||||
}
|
||||
|
||||
const path = relativePath.replace(/^\.\//, '').replace(/^\//, '')
|
||||
return `${import.meta.env.BASE_URL}${path}`
|
||||
}
|
||||
Reference in New Issue
Block a user