feat: add utility function to format URLs and create new CSS file for styling

This commit is contained in:
byntangxyz committed 2026-05-26 19:56:52 +07:00
1 parent b2f3e9661e
commit 8df58d74de
14 files changed
+24 -40

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
const SERVER_URL = import.meta.env.VITE_SERVER_URL || 'http://localhost:3000'
export function formatUrl(url) {
if (!url) return ''
return url.startsWith('http') ? url : `${SERVER_URL}${url}`
}