forked from UKSOURCE/hailearning.edu.vn
feat: Add service details page with API integration
This commit is contained in:
5
app/utils/image.ts
Normal file
5
app/utils/image.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const imageUrl = (path?: string) => {
|
||||
if (!path) return "";
|
||||
if (path.startsWith("http")) return path;
|
||||
return `${process.env.NEXT_PUBLIC_API_URL}/${path}`;
|
||||
};
|
||||
Reference in New Issue
Block a user