We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89eb184 commit 2bd25e1Copy full SHA for 2bd25e1
1 file changed
apps/sim/app/api/copilot/checkpoints/revert/route.ts
@@ -12,6 +12,7 @@ import {
12
} from '@/lib/copilot/auth'
13
import { createLogger } from '@/lib/logs/console/logger'
14
import { validateUUID } from '@/lib/security/input-validation'
15
+import { getBaseUrl } from '@/lib/urls/utils'
16
17
const logger = createLogger('CheckpointRevertAPI')
18
@@ -93,7 +94,7 @@ export async function POST(request: NextRequest) {
93
94
}
95
96
const stateResponse = await fetch(
- `${request.nextUrl.origin}/api/workflows/${checkpoint.workflowId}/state`,
97
+ `${getBaseUrl()}/api/workflows/${checkpoint.workflowId}/state`,
98
{
99
method: 'PUT',
100
headers: {
0 commit comments