0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
lilnasy 2023-09-11 18:07:37 +00:00 committed by astrobot-houston
parent 2c96144696
commit fdf9b66f9b
2 changed files with 5 additions and 5 deletions

View file

@ -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.

View file

@ -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(),