parent
d3746d8117
commit
189e2b6052
5 changed files with 22 additions and 53 deletions
20
README.md
20
README.md
|
|
@ -56,20 +56,32 @@ npm run render:layout
|
|||
|
||||
## Local Preview
|
||||
|
||||
Build the Astro output first:
|
||||
Run Astro locally while editing:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Then open Astro's local URL, usually:
|
||||
|
||||
```text
|
||||
http://localhost:4321/
|
||||
```
|
||||
|
||||
For a production-style Astro preview, build the static output first:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
Then serve `dist/` with Docker:
|
||||
Then serve `dist/` with Astro preview:
|
||||
|
||||
```bash
|
||||
docker compose up
|
||||
npm run preview
|
||||
```
|
||||
|
||||
Then open:
|
||||
|
||||
```text
|
||||
http://localhost:8080/
|
||||
http://localhost:4321/
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue