update config host

This commit is contained in:
Admin 2025-08-14 13:57:11 +07:00
parent 9100e0a8e5
commit dbdbf58339
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export class Product extends CoreEntity {
return item;
}
const path = `medias/products/${title}/${item}`;
const path = `medias/products/${(title as string).toLowerCase().replaceAll(' ', '-')}/${item}`;
if (env === 'dev') {
return `http://localhost:${port}${prefix}/${path}`;