mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 09:41:35 +10:00
fix: use APP_BASE_URL
This commit is contained in:
@ -1,12 +1,12 @@
|
|||||||
/* eslint-disable turbo/no-undeclared-env-vars */
|
/* eslint-disable turbo/no-undeclared-env-vars */
|
||||||
import { NEXT_PUBLIC_MARKETING_URL } from '../constants/app';
|
import { APP_BASE_URL } from '../constants/app';
|
||||||
|
|
||||||
export const getBaseUrl = () => {
|
export const getBaseUrl = () => {
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
const marketingAppUrl = NEXT_PUBLIC_MARKETING_URL();
|
const marketingAppUrl = APP_BASE_URL();
|
||||||
|
|
||||||
if (marketingAppUrl) {
|
if (marketingAppUrl) {
|
||||||
return marketingAppUrl;
|
return marketingAppUrl;
|
||||||
|
|||||||
Reference in New Issue
Block a user