edit and re publist

This commit is contained in:
Admin 2025-08-16 10:48:09 +07:00
parent 712843527b
commit 298b9bfc59
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ export class Product extends CoreEntity {
const env = process.env.ENV || 'production';
const prefix = process.env.PREFIX_VERSION || '/api';
const port = process.env.APP_PORT || '4000';
const domain = process.env.APP_DOMAIN || '';
return (value as string[]).map((item) => {
// Nếu đã là URL đầy đủ thì trả về nguyên xi
@ -26,7 +27,7 @@ export class Product extends CoreEntity {
if (env === 'dev') {
return `http://localhost:${port}${prefix}/${path}`;
}
return path;
return `http://${domain}:${port}${prefix}/${path}`;
});
})
images: string[];