Skip to content

Commit 9dd6665

Browse files
committed
redirect via location instead of fetch
1 parent 1522222 commit 9dd6665

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/vps-web/src/app/netlify-deployment-wip/token-handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const netlifyTokenHandler = () => {
2323
document.cookie = `netlify_access_token=${tokenFromUrl}; path=/; max-age=31536000; secure; samesite=strict`;
2424
}
2525
}
26+
console.log('Netlify Access Token:', netlifyAccessToken);
2627
};
2728

2829
export const setNetlifySiteId = (siteId: string) => {

apps/vps-web/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ if (url.pathname === '/run-flow') {
379379
const redirectUrl =
380380
'https://form-generator-worker.maikel-f16.workers.dev/netlify/code-flow-canvas';
381381

382-
fetch(redirectUrl);
382+
location.href = redirectUrl;
383383
}
384384
};
385385
return (

0 commit comments

Comments
 (0)