summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar lilnasy <lilnasy@users.noreply.github.com> 2023-09-11 18:07:37 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-09-11 18:07:37 +0000
commit4912c1db399fa0123f19fec6fb3f50e30978ac02 (patch)
tree069d1364708e4da982959df77151c1b79f152277
parent772da934e8324bf6d5b2be76766b131931772f8f (diff)
downloadastro-4912c1db399fa0123f19fec6fb3f50e30978ac02.tar.gz
astro-4912c1db399fa0123f19fec6fb3f50e30978ac02.tar.zst
astro-4912c1db399fa0123f19fec6fb3f50e30978ac02.zip
[ci] format
-rw-r--r--packages/integrations/cloudflare/README.md4
-rw-r--r--packages/integrations/cloudflare/src/parser.ts6
2 files changed, 5 insertions, 5 deletions
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(),