mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-19 13:58:56 +00:00
new examples
This commit is contained in:
29
node/sveltekit/README.md
Normal file
29
node/sveltekit/README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# SvelteKit
|
||||
|
||||
SvelteKit 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 `@sveltejs/adapter-node`.
|
||||
|
||||
### Static Export
|
||||
|
||||
```bash
|
||||
cd static
|
||||
npm install
|
||||
npm run dev # development
|
||||
npm run build # build to 'build' directory
|
||||
npm start # serve static files
|
||||
```
|
||||
|
||||
Uses `@sveltejs/adapter-static` with `prerender = true` in layout.
|
||||
Reference in New Issue
Block a user