- Updated dependencies:
@remix-run/cloudflare@2.10.1
- Updated dependencies:
@remix-run/cloudflare@2.10.0
- Updated dependencies:
@remix-run/cloudflare@2.9.2
- Updated dependencies:
@remix-run/cloudflare@2.9.1
- Updated dependencies:
@remix-run/cloudflare@2.9.0
- Updated dependencies:
@remix-run/cloudflare@2.8.1
- Updated dependencies:
@remix-run/cloudflare@2.8.0
- Updated dependencies:
@remix-run/cloudflare@2.7.2
-
Fix breaking change for
@remix-run/cloudflare-pages
(#8819)Restore Cloudflare event context fields in
getLoadContext
argument for backwards compatibility. -
Updated dependencies:
@remix-run/cloudflare@2.7.1
-
Make
getLoadContext
optional for Cloudflare Pages (#8701)Defaults to
(context) => ({ env: context })
, which is what we used to have in all the templates. This gives parity with the Cloudflare preset for the Remix Vite plugin and keeps our templates leaner. -
Vite: Cloudflare Proxy as a Vite plugin (#8749)
This is a breaking change for projects relying on Cloudflare support from the unstable Vite plugin
The Cloudflare preset (
unstable_cloudflarePreset
) as been removed and replaced with a new Vite plugin:import { unstable_vitePlugin as remix, - unstable_cloudflarePreset as cloudflare, + cloudflareDevProxyVitePlugin as remixCloudflareDevProxy, } from "@remix-run/dev"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [ + remixCloudflareDevProxy(), + remix(), - remix({ - presets: [cloudflare()], - }), ], - ssr: { - resolve: { - externalConditions: ["workerd", "worker"], - }, - }, });
remixCloudflareDevProxy
must come before theremix
plugin so that it can override Vite's dev server middleware to be compatible with Cloudflare's proxied environment.Because it is a Vite plugin,
remixCloudflareDevProxy
can setssr.resolve.externalConditions
to beworkerd
-compatible for you.remixCloudflareDevProxy
accepts agetLoadContext
function that replaces the oldgetRemixDevLoadContext
. If you were using anightly
version that requiredgetBindingsProxy
orgetPlatformProxy
, that is no longer required. Any options you were passing togetBindingsProxy
orgetPlatformProxy
should now be passed toremixCloudflareDevProxy
instead.This API also better aligns with future plans to support Cloudflare with a framework-agnostic Vite plugin that makes use of Vite's (experimental) Runtime API.
- Updated dependencies:
@remix-run/cloudflare@2.7.0
-
Vite: Cloudflare Pages support (#8531)
To get started with Cloudflare, you can use the [
unstable-vite-cloudflare
][template-vite-cloudflare] template:npx create-remix@latest --template remix-run/remix/templates/unstable-vite-cloudflare
Or read the new docs at Future > Vite > Cloudflare and Future > Vite > Migrating > Migrating Cloudflare Functions.
-
Updated dependencies:
@remix-run/cloudflare@2.6.0
- Updated dependencies:
@remix-run/cloudflare@2.5.1
- Updated dependencies:
@remix-run/cloudflare@2.5.0
- Updated dependencies:
@remix-run/cloudflare@2.4.1
- Updated dependencies:
@remix-run/cloudflare@2.4.0
- Updated dependencies:
@remix-run/cloudflare@2.3.1
- Updated dependencies:
@remix-run/cloudflare@2.3.0
- Updated dependencies:
@remix-run/cloudflare@2.2.0
- Updated dependencies:
@remix-run/cloudflare@2.1.0
- Updated dependencies:
@remix-run/cloudflare@2.0.1
- Updated dependencies:
@remix-run/cloudflare@2.0.0
- Updated dependencies:
@remix-run/cloudflare@1.19.3
- Updated dependencies:
@remix-run/cloudflare@1.19.2
- Updated dependencies:
@remix-run/cloudflare@1.19.1
- Updated dependencies:
@remix-run/cloudflare@1.19.0
- Updated dependencies:
@remix-run/cloudflare@1.18.1
- Updated dependencies:
@remix-run/cloudflare@1.18.0
- Updated dependencies:
@remix-run/cloudflare@1.17.1
- Updated dependencies:
@remix-run/cloudflare@1.17.0
- Updated dependencies:
@remix-run/cloudflare@1.16.1
- feat: support async
getLoadContext
in all adapters (#6170) - Updated dependencies:
@remix-run/cloudflare@1.16.0
- Updated dependencies:
@remix-run/cloudflare@1.15.0
- Updated dependencies:
@remix-run/cloudflare@1.14.3
- Updated dependencies:
@remix-run/cloudflare@1.14.2
- Updated dependencies:
@remix-run/cloudflare@1.14.1
- Updated dependencies:
@remix-run/cloudflare@1.14.0
- Updated dependencies:
@remix-run/cloudflare@1.13.0
- Updated dependencies:
@remix-run/cloudflare@1.12.0
- Updated dependencies:
@remix-run/cloudflare@1.11.1
- Updated dependencies:
@remix-run/cloudflare@1.11.0
- Updated dependencies:
@remix-run/cloudflare@1.10.1
- Updated dependencies:
@remix-run/cloudflare@1.10.0
- Updated dependencies:
@remix-run/cloudflare@1.9.0
- Updated dependencies:
@remix-run/cloudflare@1.8.2
- Updated dependencies:
@remix-run/cloudflare@1.8.1
- Updated dependencies:
@remix-run/cloudflare@1.8.0
- Updated dependencies:
@remix-run/cloudflare@1.7.6
- Updated dependencies:
@remix-run/cloudflare@1.7.6-pre.0
- Updated dependencies:
@remix-run/cloudflare@1.7.5
- Updated dependencies:
@remix-run/cloudflare@1.7.4
- Updated dependencies:
@remix-run/cloudflare@1.7.3
- Updated dependencies:
@remix-run/cloudflare@1.7.2
- Updated dependencies:
@remix-run/cloudflare@1.7.1
- Updated dependencies:
@remix-run/cloudflare@1.7.0
- Updated dependencies:
@remix-run/cloudflare@1.6.8
- Updated dependencies:
@remix-run/cloudflare@1.6.7
- Updated dependencies:
@remix-run/cloudflare@1.6.6
- Updated dependencies
@remix-run/cloudflare@1.6.5