diff --git a/apps/swagger/pages/index.tsx b/apps/swagger/pages/index.tsx index 1d76585a4d..40cb67b162 100644 --- a/apps/swagger/pages/index.tsx +++ b/apps/swagger/pages/index.tsx @@ -38,7 +38,7 @@ export default function APIDocs() { docExpansion="none" operationsSorter="method" filter={true} - url={process.env.NEXT_PUBLIC_SWAGGER_DOCS_URL || "https://api.cal.dev/docs"} + url={process.env.NEXT_PUBLIC_SWAGGER_DOCS_URL || "https://api.cal.com/api/docs"} /> ); diff --git a/packages/app-store/utils.ts b/packages/app-store/utils.ts index f5bb64829a..ed61dde2f2 100644 --- a/packages/app-store/utils.ts +++ b/packages/app-store/utils.ts @@ -40,13 +40,14 @@ const defaultLocations: OptionTypeBase[] = [ ]; export function getLocationOptions(integrations: AppMeta, t: TFunction) { + const locations = [...defaultLocations]; integrations.forEach((app) => { if (app.locationOption) { - defaultLocations.push(app.locationOption); + locations.push(app.locationOption); } }); - return translateLocations(defaultLocations, t); + return translateLocations(locations, t); } /**