Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration READMEs code block sweep 馃Ч #5455

Merged
merged 2 commits into from
Nov 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rework deno example to avoid del/ins
  • Loading branch information
delucis committed Nov 22, 2022
commit 7bbc8ca5965fe5d2ae9f6890957c5d693817173a
41 changes: 20 additions & 21 deletions packages/integrations/deno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,26 @@ If you prefer to install the adapter manually instead, complete the following tw
});
```

Next, Update your `preview` script in `package.json` with the change below.

```json del={8} ins={9}
// package.json
{
// ...
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview"
"preview": "deno run --allow-net --allow-read --allow-env ./dist/server/entry.mjs"
}
}
```

You can now use this command to preview your production Astro site locally with Deno.

```bash
npm run preview
```
Next, update your `preview` script in `package.json` to run `deno`:

```json ins={8}
// package.json
{
// ...
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "deno run --allow-net --allow-read --allow-env ./dist/server/entry.mjs"
}
}
```

You can now use this command to preview your production Astro site locally with Deno.

```bash
npm run preview
```

## Usage

Expand Down