Working on presigned urls in local.

This commit is contained in:
charles-gauthereau
2024-11-28 20:28:00 +01:00
parent 319662e39c
commit feb10603e9
9 changed files with 134 additions and 7 deletions
+3
View File
@@ -4,5 +4,8 @@ export const getServerUrl = () => {
if (typeof window !== 'undefined') {
return window.location.origin;
}
if(env.NODE_ENV === 'development') {
return `http://${env.NEXT_PUBLIC_DOMAIN_NAME}`;
}
return `https://${env.NEXT_PUBLIC_DOMAIN_NAME}`;
}