Skip to content

Commit 5242aba

Browse files
authored
chore(docs): update Cloudflare documentation
Vite setup no longer required.
1 parent f38646d commit 5242aba

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

docs/cloudflare.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,6 @@ export default {
1919
}
2020
```
2121

22-
### Vite
23-
24-
Enable [Node.js compatibility](https://developers.cloudflare.com/workers/runtime-apis/nodejs/) for Cloudflare in [wrangler.toml](https://developers.cloudflare.com/workers/runtime-apis/nodejs/#enable-nodejs-with-workers), [Cloudflare Dashboard](https://developers.cloudflare.com/workers/runtime-apis/nodejs/#enable-nodejs-from-the-cloudflare-dashboard), and in the start script inside `package.json`.
25-
26-
```json
27-
"scripts": {
28-
"start": "wrangler pages dev ./build/client --compatibility-flags=nodejs_compat"
29-
}
30-
```
31-
32-
Ensure the `Buffer` global is set up before using `remix-auth-totp`.
33-
34-
```ts
35-
import { Buffer } from 'node:buffer'
36-
37-
function setUpGlobals() {
38-
globalThis.Buffer = Buffer
39-
}
40-
```
41-
4222
### AppLoadContext
4323

4424
If you need `context` to be populated with the `AppLoadContext` in `SendTOTPOptions` or `TOTPVerifyParams`, be sure to include it in the call to `authenticate` on the remix-auth `Authenticator`.

0 commit comments

Comments
 (0)