Skip to content

Commit

Permalink
docs(future/vite): bring in line with template (remix-run#8851)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaltz authored Feb 22, 2024
1 parent df0a668 commit 4c701b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@
- juwiragiye
- jveldridge
- jvnm-dev
- jwaltz
- jwnx
- kalch
- kamtugeza
Expand Down
8 changes: 8 additions & 0 deletions docs/future/vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ you should export a `getLoadContext` function from a shared module so that **loa
import { type AppLoadContext } from "@remix-run/cloudflare";
import { type PlatformProxy } from "wrangler";

// When using `wrangler.toml` to configure bindings,
// `wrangler types` will generate types for those bindings
// into the global `Env` interface.
// Need this empty interface so that typechecking passes
// even if no `wrangler.toml` exists.
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface Env {}

type Cloudflare = Omit<PlatformProxy<Env>, "dispose">;

declare module "@remix-run/cloudflare" {
Expand Down

0 comments on commit 4c701b7

Please sign in to comment.