@sveltejs/adapter-cloudflare
Advanced tools
Comparing version 4.2.1 to 4.3.0
import { Adapter } from '@sveltejs/kit'; | ||
import './ambient.js'; | ||
import { GetPlatformProxyOptions } from 'wrangler'; | ||
@@ -20,3 +21,3 @@ export default function plugin(options?: AdapterOptions): Adapter; | ||
/** | ||
* Customize the automatically-generated `_routes.json` file | ||
* Customize the automatically-generated `_routes.json` file. | ||
* https://developers.cloudflare.com/pages/platform/functions/routing/#create-a-_routesjson-file | ||
@@ -46,2 +47,8 @@ */ | ||
}; | ||
/** | ||
* Config object passed to {@link https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy | getPlatformProxy} | ||
* during development and preview. | ||
*/ | ||
platformProxy?: GetPlatformProxyOptions; | ||
} | ||
@@ -48,0 +55,0 @@ |
@@ -131,3 +131,3 @@ import { writeFileSync } from 'node:fs'; | ||
async emulate() { | ||
const proxy = await getPlatformProxy(); | ||
const proxy = await getPlatformProxy(options.platformProxy); | ||
const platform = /** @type {App.Platform} */ ({ | ||
@@ -134,0 +134,0 @@ env: proxy.env, |
{ | ||
"name": "@sveltejs/adapter-cloudflare", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "Adapter for building SvelteKit applications on Cloudflare Pages with Workers integration", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14813
360