feat: add utility function to format URLs and create new CSS file for styling
This commit is contained in:
@@ -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}`
|
||||
}
|
||||
Reference in New Issue
Block a user