create-feltkit 0.3.3 → 0.3.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.
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -163,6 +163,7 @@ FeltKit doesn't host your app; it builds what you run, for the way you want to r
|
|
|
163
163
|
| `container` (default) | Everything in one container | FeltDB state on a volume |
|
|
164
164
|
| `hosted` | A separate app container | Managed FeltDB, hosted for you, from the artifact's contract (it declares AppPort Services' collections too) |
|
|
165
165
|
| `self-hosted` | A separate app container | A FeltDB server you operate (`feltdb-server`), in this app's namespace |
|
|
166
|
+
| `vercel` | Vercel's container runtime (beta), scaling with traffic | Managed FeltDB, or your FeltDB server with `--data self-hosted` |
|
|
166
167
|
|
|
167
168
|
Each target's `DEPLOY.md` spells out its contract: what to set, where state lives and how to
|
|
168
169
|
recover it, what stops startup, and how to upgrade and roll back. A target never changes where
|
|
@@ -175,7 +176,7 @@ without their FeltDB settings.
|
|
|
175
176
|
npx feltkit readiness --env production
|
|
176
177
|
```
|
|
177
178
|
|
|
178
|
-
2. **Build and verify.** It asks which target (or pass `--target container`, `hosted
|
|
179
|
+
2. **Build and verify.** It asks which target (or pass `--target container`, `hosted`, `self-hosted` or `vercel`):
|
|
179
180
|
|
|
180
181
|
```bash
|
|
181
182
|
npm run deploy
|
|
@@ -213,7 +214,9 @@ without their FeltDB settings.
|
|
|
213
214
|
`.feltkit/deploy/.env`, then run the same `docker compose` command. With your own FeltDB
|
|
214
215
|
server (`--target self-hosted`), create a key for the app's namespace (`feltdb-server keys
|
|
215
216
|
create --keys <keys.json> --name tasks --namespace tasks --scope state:read,state:write`) and
|
|
216
|
-
put `FELTDB_URL` and `FELTDB_TOKEN` in `.env`.
|
|
217
|
+
put `FELTDB_URL` and `FELTDB_TOKEN` in `.env`. On Vercel (`--target vercel`), follow
|
|
218
|
+
`.feltkit/deploy/DEPLOY.md`: `npx vercel link`, `npx vercel env add …` for each variable, then
|
|
219
|
+
`npx vercel deploy --prod`, all in `.feltkit/deploy`. Either container refuses to start without its
|
|
217
220
|
settings, and checks the database answers, so it never keeps data on its own disk. For
|
|
218
221
|
Fly.io, plain Docker, or other hosts, follow `.feltkit/deploy/DEPLOY.md`.
|
|
219
222
|
|
package/template/package.json
CHANGED