Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
set redirect mode to manual
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceharrison1984 committed Apr 19, 2024
1 parent fd50a3f commit 0afa99e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-wrangler-spa",
"version": "0.0.13",
"version": "0.0.14",
"description": "Vite plugin for creating Cloudflare Pages SPA applications with API endpoints",
"author": "Bruce Harrison",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const makeWranglerFetch = (
const wranglerReq: Omit<RequestInit, 'dispatcher'> = {
headers,
method,
redirect: 'manual',
};

if (!['GET', 'HEAD'].includes(method!.toUpperCase())) {
Expand Down

0 comments on commit 0afa99e

Please sign in to comment.