migration

This commit is contained in:
Théo LAGACHE
2025-05-16 15:54:17 +02:00
parent 01019fe1a3
commit 6f2523e524
285 changed files with 15492 additions and 46090 deletions
+6 -6
View File
@@ -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}`;
};