forked from sveltejs/kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…ltejs#12011) * feat: allow passing config to getPlatformProxy via platformProxy option * remove platformProxy default value * Update packages/adapter-cloudflare-workers/index.js * Update 60-adapter-cloudflare.md * Update 60-adapter-cloudflare.md * Update 70-adapter-cloudflare-workers.md * Update index.d.ts * Update packages/adapter-cloudflare-workers/index.d.ts * Update packages/adapter-cloudflare-workers/index.js * Update documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md * Update documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md * Update documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md * Update documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md * Update 60-adapter-cloudflare.md * Update documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md * Update documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md --------- Co-authored-by: Tee Ming <[email protected]>
- Loading branch information
1 parent
41b7ae9
commit f80ba75
Showing
7 changed files
with
53 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@sveltejs/adapter-cloudflare-workers": minor | ||
"@sveltejs/adapter-cloudflare": minor | ||
--- | ||
|
||
feat: support platform emulation configuration via the `platformProxy` adapter option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { Adapter } from '@sveltejs/kit'; | ||
import './ambient.js'; | ||
import { GetPlatformProxyOptions } from 'wrangler'; | ||
|
||
export default function plugin(options?: AdapterOptions): Adapter; | ||
|
||
export interface AdapterOptions { | ||
config?: string; | ||
/** | ||
* Config object passed to {@link https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy | getPlatformProxy} | ||
* during development and preview. | ||
*/ | ||
platformProxy?: GetPlatformProxyOptions; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters