-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
32 additions
and
11 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,24 @@ | ||
This directory provides a temporary implementation of CloudFlare's [`getBindingsProxy` API][get-bindings-proxy]. | ||
|
||
Once [CloudFlare ships that feature][get-bindings-proxy], Remix will export a CloudFlare adapter that you can use: | ||
|
||
```ts | ||
// vite.config.ts | ||
import { adapter as cloudflare } from "@remix-run/cloudflare"; | ||
import { vitePlugin as remix } from "@remix-run/dev"; | ||
import { defineConfig } from "vite"; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
remix({ | ||
adapter: cloudflare({ | ||
bindings: { | ||
/* ... */ | ||
}, | ||
}), | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
[get-bindings-proxy]: https://github.com/cloudflare/workers-sdk/pull/4523 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// If you're wondering what this code is all about, check out the README.md in this directory! | ||
export { adapter } from "./adapter"; |
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