@cloudflare/vite-plugin 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -13002,6 +13002,10 @@ function getRouterWorker(miniflare2) {
|
|
|
13002
13002
|
return miniflare2.getWorker(ROUTER_WORKER_NAME);
|
|
13003
13003
|
}
|
|
13004
13004
|
function toMiniflareRequest(request) {
|
|
13005
|
+
const host = request.headers.get("Host");
|
|
13006
|
+
if (host) {
|
|
13007
|
+
request.headers.set("X-Forwarded-Host", host);
|
|
13008
|
+
}
|
|
13005
13009
|
const secFetchMode = request.headers.get("Sec-Fetch-Mode");
|
|
13006
13010
|
if (secFetchMode) {
|
|
13007
13011
|
request.headers.set("X-Mf-Sec-Fetch-Mode", secFetchMode);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "Cloudflare plugin for Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"tinyglobby": "^0.2.12",
|
|
39
39
|
"unenv": "2.0.0-rc.15",
|
|
40
40
|
"ws": "8.18.0",
|
|
41
|
-
"@cloudflare/unenv-preset": "2.3.1",
|
|
42
41
|
"miniflare": "4.20250321.1",
|
|
43
|
-
"wrangler": "4.
|
|
42
|
+
"wrangler": "4.6.0",
|
|
43
|
+
"@cloudflare/unenv-preset": "2.3.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@cloudflare/workers-types": "^4.20250321.0",
|