create-snagset 0.1.10 → 0.1.12

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.
@@ -89,12 +89,17 @@ file free of comment keys — Vercel's schema rejects them. Set `DATABASE_URL`
89
89
  to the **transaction pooler** string (Supabase from the marketplace sets a
90
90
  pooled one for you), set `SNAGSET_SECRET_KEY` (required on serverless — the
91
91
  filesystem is ephemeral, so a generated key would differ per instance and
92
- nothing would decrypt) and `CRON_SECRET`, and add a build command:
92
+ nothing would decrypt) and `CRON_SECRET`. Vercel does not migrate for you —
93
+ after each upgrade, run this here, with the deployment's `DATABASE_URL` in
94
+ `.env` (not as Vercel's build command: Vercel fails a build that leaves no
95
+ static output):
93
96
 
94
97
  ```
95
98
  npx snagset migrate
96
99
  ```
97
100
 
101
+ If it is forgotten, the dashboard shows a banner on every page until it is run.
102
+
98
103
  **Anything that runs Node.** `pnpm start`. It serves the API, the dashboard and
99
104
  the widget on one port.
100
105
 
@@ -3,7 +3,8 @@
3
3
  # or Neon project in a region near your clients takes a minute. Neon's
4
4
  # pooled string (the `-pooler` host) is the one to use and needs no notes.
5
5
  #
6
- # WHICH SUPABASE STRING. "Connect" on the project shows three:
6
+ # WHICH SUPABASE STRING. "Connect" on the project, then the "Direct"
7
+ # tab (it opens on "Framework", which is for app code), shows three:
7
8
  # · Session pooler (…pooler.supabase.com:5432, user postgres.<ref>)
8
9
  # — for `npm start`: a Node process on Railway, Render, Fly, a VPS or
9
10
  # your laptop. Works over IPv4.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snagset",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
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.",