spfn 0.2.0-beta.54 → 0.2.0-beta.56
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/README.md +4 -1
- package/dist/index.js +679 -608
- package/package.json +13 -12
package/README.md
CHANGED
|
@@ -61,7 +61,9 @@ Tailwind, import alias `@/*`, no ESLint), sets up SVGR icons, then runs `init`.
|
|
|
61
61
|
|
|
62
62
|
Adds SPFN to an existing Next.js project: copies the server templates, wires the RPC
|
|
63
63
|
proxy route, Docker files, deploy + codegen config, updates `package.json` scripts/deps,
|
|
64
|
-
and installs.
|
|
64
|
+
and installs. With auth enabled it also adds the `/_auth/:path*` → SPFN API rewrite to
|
|
65
|
+
`next.config` (OAuth callbacks return to the app origin; merged manually if a `rewrites()`
|
|
66
|
+
already exists). See [Scaffold structure](#scaffold-structure) for what lands on disk.
|
|
65
67
|
|
|
66
68
|
| Option | Description |
|
|
67
69
|
|--------|-------------|
|
|
@@ -280,6 +282,7 @@ spfn.config.js # deployment config (subdomain/region/domai
|
|
|
280
282
|
docker-compose.yml # Postgres + Redis (dev)
|
|
281
283
|
docker-compose.production.yml
|
|
282
284
|
Dockerfile, .dockerignore
|
|
285
|
+
next.config.ts # patched when auth is enabled: /_auth/:path* rewrite → SPFN API
|
|
283
286
|
.env.example # committed reference — every key, placeholder values
|
|
284
287
|
.env.local # generated, gitignored (Next.js-facing URLs)
|
|
285
288
|
.env.server # generated, gitignored (server secrets: DB, cache)
|