mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on presigned urls in local.
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
Reference in New Issue
Block a user