create-snagset 0.1.3 → 0.1.5

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.
@@ -72,7 +72,10 @@ dashboard says so.
72
72
 
73
73
  ## Deploy it
74
74
 
75
- **Vercel.** `vercel.json` and `api/index.js` are here already. Add a Postgres
75
+ **Vercel.** `vercel.json` and `api/index.js` are here already. The
76
+ `rewrites` entry is load-bearing: without it Vercel's filesystem router serves
77
+ only `/api/index` and 404s `/`, `/snag.js` and the cron's own path. Keep the
78
+ file free of comment keys — Vercel's schema rejects them. Add a Postgres
76
79
  from the marketplace, set `SNAGSET_SECRET_KEY` (required on serverless — the
77
80
  filesystem is ephemeral, so a generated key would differ per instance and
78
81
  nothing would decrypt), and add a release command:
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "$schema": "https://openapi.vercel.sh/vercel.json",
3
-
4
- "//": "EVERY PATH REACHES THE ONE HANDLER. Without this, Vercel's filesystem router serves only /api/index and 404s /, /snag.js and even the cron's own /api/jobs/run — before the handler runs, with x-vercel-error: NOT_FOUND. Found on a real deploy 2026-09-01, not by any test we own: a serverless entry that is never reached looks identical to one that works until somebody opens the site.",
5
- "rewrites": [{ "source": "/(.*)", "destination": "/api/index" }],
6
-
3
+ "rewrites": [
4
+ {
5
+ "source": "/(.*)",
6
+ "destination": "/api/index"
7
+ }
8
+ ],
7
9
  "crons": [
8
- { "path": "/api/jobs/run", "schedule": "* * * * *" }
10
+ {
11
+ "path": "/api/jobs/run",
12
+ "schedule": "* * * * *"
13
+ }
9
14
  ]
10
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snagset",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Scaffold your own Snagset instance. One command, Postgres included, one variable to fill in.",