mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
18 lines
424 B
TypeScript
18 lines
424 B
TypeScript
export const getBaseUrl = () => {
|
|
if (process.env.NEXT_PUBLIC_APP_URL) {
|
|
return process.env.NEXT_PUBLIC_APP_URL;
|
|
}
|
|
|
|
if (
|
|
process.env.VERCEL_ENV === 'production' &&
|
|
process.env.VERCEL_PROJECT_PRODUCTION_URL
|
|
) {
|
|
return `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`;
|
|
}
|
|
|
|
if (process.env.VERCEL_URL) {
|
|
return `https://${process.env.VERCEL_URL}`;
|
|
}
|
|
|
|
return 'http://localhost:3000';
|
|
};
|