cms-renderer 0.6.6 → 0.6.7
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 +2 -2
- package/dist/lib/custom-schemas.js.map +1 -1
- package/dist/lib/docs-markdown.js +6 -2
- package/dist/lib/docs-markdown.js.map +1 -1
- package/dist/lib/parametric-route.d.ts +41 -0
- package/dist/lib/parametric-route.js +686 -0
- package/dist/lib/parametric-route.js.map +1 -0
- package/dist/lib/renderer.d.ts +7 -23
- package/dist/lib/renderer.js +175 -86
- package/dist/lib/renderer.js.map +1 -1
- package/dist/lib/schema.d.ts +5 -0
- package/dist/lib/schema.js +21 -1
- package/dist/lib/schema.js.map +1 -1
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -147,7 +147,7 @@ NEXT_PUBLIC_CMS_API_URL=https://cms.example.com
|
|
|
147
147
|
|
|
148
148
|
Use `CMS_API_KEY` when your CMS requires authenticated access.
|
|
149
149
|
|
|
150
|
-
`
|
|
150
|
+
The default `schema` / `component` exports from `cms-renderer/lib/schema` read `NEXT_PUBLIC_CMS_API_URL` on **first use** (lazy), not when the module loads — so importing only `configureSchema` never touches that env. If you call `configureSchema(...)` directly, pass `cmsUrl` explicitly instead.
|
|
151
151
|
|
|
152
152
|
If no website ID is available, `ParametricRoutePage` throws at runtime.
|
|
153
153
|
|
|
@@ -206,7 +206,7 @@ Available methods:
|
|
|
206
206
|
- `fetchSingleById(id)`
|
|
207
207
|
- `translation(language)`
|
|
208
208
|
|
|
209
|
-
If you use the default `component` export, it reads `NEXT_PUBLIC_CMS_API_URL` from the environment. If you call `configureSchema(...)` directly, pass the CMS origin/base URL as `cmsUrl`.
|
|
209
|
+
If you use the default `component` export, it reads `NEXT_PUBLIC_CMS_API_URL` from the environment on first access. If you call `configureSchema(...)` directly, pass the CMS origin/base URL as `cmsUrl`.
|
|
210
210
|
|
|
211
211
|
## Custom Component Code Generation
|
|
212
212
|
|