mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
migration
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import {env} from "@/env.mjs";
|
||||
import { env } from "@/env.mjs";
|
||||
|
||||
export const getServerUrl = () => {
|
||||
if (typeof window !== 'undefined') {
|
||||
if (typeof window !== "undefined") {
|
||||
return window.location.origin;
|
||||
}
|
||||
if(env.NODE_ENV === 'development') {
|
||||
return `http://${env.NEXT_PUBLIC_DOMAIN_NAME}`;
|
||||
if (env.NODE_ENV === "development") {
|
||||
return `http://${env.NEXT_PUBLIC_PROJECT_URL}`;
|
||||
}
|
||||
return `https://${env.NEXT_PUBLIC_DOMAIN_NAME}`;
|
||||
}
|
||||
return `https://${env.NEXT_PUBLIC_PROJECT_URL}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user