diff --git a/packages/integrations/cloudflare/README.md b/packages/integrations/cloudflare/README.md index b627b44d9..8d8b3c041 100644 --- a/packages/integrations/cloudflare/README.md +++ b/packages/integrations/cloudflare/README.md @@ -159,14 +159,14 @@ export function GET({ params }) { } ``` -### `cloudflare.runtime` +### `cloudflare.runtime` `runtime: "off" | "local" | "remote"` default `"off"` This optional flag enables the Astro dev server to populate environment variables and the Cloudflare Request Object, avoiding the need for Wrangler. -- `local`: environment variables are available, but the request object is populated from a static placeholder value. +- `local`: environment variables are available, but the request object is populated from a static placeholder value. - `remote`: environment variables and the live, fetched request object are available. - `off`: the Astro dev server will populate neither environment variables nor the request object. Use Wrangler to access Cloudflare bindings and environment variables. diff --git a/packages/integrations/cloudflare/src/parser.ts b/packages/integrations/cloudflare/src/parser.ts index d7130ff9d..e9a9cdd00 100644 --- a/packages/integrations/cloudflare/src/parser.ts +++ b/packages/integrations/cloudflare/src/parser.ts @@ -7,11 +7,11 @@ * TODO: Tackle this file, once their is an decision on the upstream request */ -import * as fs from 'node:fs'; -import { resolve, dirname } from 'node:path'; -import { findUpSync } from 'find-up'; import TOML from '@iarna/toml'; import dotenv from 'dotenv'; +import { findUpSync } from 'find-up'; +import * as fs from 'node:fs'; +import { dirname, resolve } from 'node:path'; function findWranglerToml( referencePath: string = process.cwd(),