vela 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +2 -2
- package/dist/bin.js.map +1 -1
- package/package.json +2 -2
- package/templates/server/apply.sh +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vela",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A CLI for creating and updating SvelteKit projects",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@clack/prompts": "^1.7.0",
|
|
39
39
|
"@faker-js/faker": "^10.6.0",
|
|
40
|
-
"@velastack/patterns": "^0.4.
|
|
40
|
+
"@velastack/patterns": "^0.4.1",
|
|
41
41
|
"@velastack/pocketbase-codegen": "^0.1.0",
|
|
42
42
|
"annotate-json-schema": "^0.1.1",
|
|
43
43
|
"commander": "^15.0.0",
|
|
@@ -486,7 +486,17 @@ if [ -n "$DOMAIN" ]; then
|
|
|
486
486
|
tmp=$(mktemp "$VELA_ETC/caddy/.snippet.XXXXXX")
|
|
487
487
|
{
|
|
488
488
|
printf '# Managed by vela - app %s (%s)\n' "$APP_NAME" "$INSTANCE"
|
|
489
|
-
printf '%s {\n
|
|
489
|
+
printf '%s {\n' "$hosts"
|
|
490
|
+
# The app precompresses its built assets but not rendered pages; Caddy
|
|
491
|
+
# passes an already-encoded response through untouched.
|
|
492
|
+
printf '\tencode zstd gzip\n'
|
|
493
|
+
# Files from static/ come back with an ETag and no Cache-Control, so a
|
|
494
|
+
# browser asks again on every view. Unhashed, so an hour rather than
|
|
495
|
+
# forever; `?` leaves whatever the app or PocketBase set alone.
|
|
496
|
+
printf '\t@static path *.jpg *.jpeg *.png *.gif *.webp *.avif *.svg *.ico *.woff *.woff2\n'
|
|
497
|
+
printf '\theader @static ?Cache-Control "public, max-age=3600"\n'
|
|
498
|
+
printf '\treverse_proxy 127.0.0.1:%s\n' "$WEB_PORT"
|
|
499
|
+
printf '}\n'
|
|
490
500
|
} > "$tmp"
|
|
491
501
|
caddy_install "$tmp" "$CADDY_SNIPPET" \
|
|
492
502
|
|| die "release $RELEASE is live, but the generated Caddy config for $DOMAIN is invalid and was not installed - routing is unchanged"
|