From 5242abaa77ea1d8139c1f04fa341d1f064cf700c Mon Sep 17 00:00:00 2001 From: Daniel Kanem Date: Fri, 25 Oct 2024 06:50:24 +0200 Subject: [PATCH] chore(docs): update Cloudflare documentation Vite setup no longer required. --- docs/cloudflare.md | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/docs/cloudflare.md b/docs/cloudflare.md index 27e75a2..d9fbbac 100644 --- a/docs/cloudflare.md +++ b/docs/cloudflare.md @@ -19,26 +19,6 @@ export default { } ``` -### Vite - -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`. - -```json -"scripts": { - "start": "wrangler pages dev ./build/client --compatibility-flags=nodejs_compat" -} -``` - -Ensure the `Buffer` global is set up before using `remix-auth-totp`. - -```ts -import { Buffer } from 'node:buffer' - -function setUpGlobals() { - globalThis.Buffer = Buffer -} -``` - ### AppLoadContext 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`.