siteplane 0.1.64 → 0.1.66
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 +13 -0
- package/dist/bin/siteplane.js +214 -258
- package/dist/index.js +134 -178
- package/dist/next.d.ts +10 -0
- package/dist/next.js +175 -108
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -144,3 +144,16 @@ siteplane analytics import --file provider-export.json
|
|
|
144
144
|
Analytics commands reuse `siteplane.config.json` and the untracked
|
|
145
145
|
`.siteplane/credentials.json` Project Connection. Provider import apply requires
|
|
146
146
|
`--apply --confirm-hash <hash> --yes` and an active owner-approved grant.
|
|
147
|
+
|
|
148
|
+
## Booking without Editor setup
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
import { withSiteplane } from "siteplane/next";
|
|
152
|
+
export default withSiteplane(nextConfig, { booking: { site: "<immutable-site-id>" } });
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
The wrapper adds `/booking/:path*` as a `beforeFiles` rewrite to Siteplane and preserves existing rewrite sections.
|
|
156
|
+
Without `siteplane.config.json`, it skips Editor scanning, headers and build proof. Use `<a href="/booking">`
|
|
157
|
+
instead of `next/link`; exclude this path from customer middleware. Configure the public booking address in
|
|
158
|
+
Siteplane and permit Siteplane/Stripe assets and connections in the customer CSP. `siteplane booking check`
|
|
159
|
+
verifies the Site ID in `next.config.*`. The public API uses Site ID plus allowed Origin; no raw Booking key is needed.
|