Skip to content

Commit 2bd25e1

Browse files
committed
revert base url
1 parent 89eb184 commit 2bd25e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • apps/sim/app/api/copilot/checkpoints/revert

apps/sim/app/api/copilot/checkpoints/revert/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from '@/lib/copilot/auth'
1313
import { createLogger } from '@/lib/logs/console/logger'
1414
import { validateUUID } from '@/lib/security/input-validation'
15+
import { getBaseUrl } from '@/lib/urls/utils'
1516

1617
const logger = createLogger('CheckpointRevertAPI')
1718

@@ -93,7 +94,7 @@ export async function POST(request: NextRequest) {
9394
}
9495

9596
const stateResponse = await fetch(
96-
`${request.nextUrl.origin}/api/workflows/${checkpoint.workflowId}/state`,
97+
`${getBaseUrl()}/api/workflows/${checkpoint.workflowId}/state`,
9798
{
9899
method: 'PUT',
99100
headers: {

0 commit comments

Comments
 (0)