mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-16 21:08:38 +08:00
Update apps/backend/src/app/api/latest/internal/external-db-sync/poller/route.ts
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
This commit is contained in:
parent
dcda40246f
commit
9e954b9603
@ -74,9 +74,7 @@ export const GET = createSmartRouteHandler({
|
||||
const options = request.qstashOptions as any;
|
||||
const baseUrl = getEnvVariable("NEXT_PUBLIC_STACK_API_URL");
|
||||
|
||||
let fullUrl = options.url.startsWith("http")
|
||||
? options.url
|
||||
: new URL(options.url, baseUrl).toString();
|
||||
let fullUrl = new URL(options.url, baseUrl).toString();
|
||||
|
||||
if (getNodeEnvironment().includes("development") || getNodeEnvironment().includes("test")) {
|
||||
const url = new URL(fullUrl);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user