[ci] format
This commit is contained in:
parent
2c96144696
commit
fdf9b66f9b
2 changed files with 5 additions and 5 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue