6 lines
160 B
TypeScript
6 lines
160 B
TypeScript
export const basePath = process.env.NEXT_PUBLIC_BASE_PATH?.trim() ?? "";
|
|
|
|
export function withBasePath(path: string): string {
|
|
return `${basePath}${path}`;
|
|
}
|