mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-19 13:58:56 +00:00
30 lines
475 B
Markdown
30 lines
475 B
Markdown
# Astro
|
|
|
|
Astro examples with SSR and static export.
|
|
|
|
## Variants
|
|
|
|
### SSR (Server-Side Rendering)
|
|
|
|
```bash
|
|
cd ssr
|
|
npm install
|
|
npm run dev # development
|
|
npm run build # build
|
|
npm start # production server
|
|
```
|
|
|
|
Uses `@astrojs/node` adapter with `output: 'server'`.
|
|
|
|
### Static Export
|
|
|
|
```bash
|
|
cd static
|
|
npm install
|
|
npm run dev # development
|
|
npm run build # build to 'dist' directory
|
|
npm start # serve static files
|
|
```
|
|
|
|
Static is the default Astro mode.
|