@polishd/next 0.2.3-dev.4 → 0.2.3-dev.6
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/CHANGELOG.md +63 -0
- package/README.md +12 -5
- package/bin/init.mjs +4 -1
- package/dist/ai/actions.d.ts +7 -1
- package/dist/ai/actions.d.ts.map +1 -1
- package/dist/ai/actions.js +10 -1
- package/dist/ai/actions.js.map +1 -1
- package/dist/ai/design.d.ts +5 -1
- package/dist/ai/design.d.ts.map +1 -1
- package/dist/ai/design.js +21 -4
- package/dist/ai/design.js.map +1 -1
- package/dist/ai/issues.d.ts +22 -11
- package/dist/ai/issues.d.ts.map +1 -1
- package/dist/ai/issues.js +102 -43
- package/dist/ai/issues.js.map +1 -1
- package/dist/ai/types.d.ts +3 -0
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/dashboard/design-review-card.d.ts +3 -1
- package/dist/dashboard/design-review-card.d.ts.map +1 -1
- package/dist/dashboard/design-review-card.js +14 -6
- package/dist/dashboard/design-review-card.js.map +1 -1
- package/dist/dashboard/design.d.ts.map +1 -1
- package/dist/dashboard/design.js +75 -17
- package/dist/dashboard/design.js.map +1 -1
- package/dist/dashboard/file-bug-button.d.ts +14 -0
- package/dist/dashboard/file-bug-button.d.ts.map +1 -0
- package/dist/dashboard/file-bug-button.js +37 -0
- package/dist/dashboard/file-bug-button.js.map +1 -0
- package/dist/dashboard/snapshot-actions.d.ts +15 -5
- package/dist/dashboard/snapshot-actions.d.ts.map +1 -1
- package/dist/dashboard/snapshot-actions.js +69 -24
- package/dist/dashboard/snapshot-actions.js.map +1 -1
- package/dist/dashboard/snapshots.d.ts.map +1 -1
- package/dist/dashboard/snapshots.js +58 -8
- package/dist/dashboard/snapshots.js.map +1 -1
- package/dist/dashboard/summary.d.ts.map +1 -1
- package/dist/dashboard/summary.js +8 -36
- package/dist/dashboard/summary.js.map +1 -1
- package/dist/dashboard/ui.d.ts +1 -0
- package/dist/dashboard/ui.d.ts.map +1 -1
- package/dist/dashboard/ui.js +1 -0
- package/dist/dashboard/ui.js.map +1 -1
- package/dist/dashboard/value-preview.d.ts +47 -0
- package/dist/dashboard/value-preview.d.ts.map +1 -0
- package/dist/dashboard/value-preview.js +138 -0
- package/dist/dashboard/value-preview.js.map +1 -0
- package/dist/dashboard.css +170 -50
- package/dist/server/snapshots.d.ts +69 -10
- package/dist/server/snapshots.d.ts.map +1 -1
- package/dist/server/snapshots.js +407 -158
- package/dist/server/snapshots.js.map +1 -1
- package/dist/server/value-previews.d.ts +47 -0
- package/dist/server/value-previews.d.ts.map +1 -0
- package/dist/server/value-previews.js +313 -0
- package/dist/server/value-previews.js.map +1 -0
- package/dist/shared/design-values.d.ts +71 -0
- package/dist/shared/design-values.d.ts.map +1 -0
- package/dist/shared/design-values.js +98 -0
- package/dist/shared/design-values.js.map +1 -0
- package/docs/SETUP.md +10 -0
- package/package.json +1 -1
package/docs/SETUP.md
CHANGED
|
@@ -196,6 +196,9 @@ import { createPolishdPage } from "@polishd/next/dashboard";
|
|
|
196
196
|
|
|
197
197
|
export const runtime = "nodejs";
|
|
198
198
|
export const dynamic = "force-dynamic";
|
|
199
|
+
// Server actions inherit this page's time limit; 300s gives site-snapshot
|
|
200
|
+
// capture headroom on hosts with strict function limits.
|
|
201
|
+
export const maxDuration = 300;
|
|
199
202
|
|
|
200
203
|
export default createPolishdPage();
|
|
201
204
|
```
|
|
@@ -437,6 +440,13 @@ SQLite file cannot persist there. Production capture needs Postgres.
|
|
|
437
440
|
3. Set your host's Node version to 22.x or later.
|
|
438
441
|
4. Deploy. Tables are created automatically on first use.
|
|
439
442
|
|
|
443
|
+
For **site snapshots** in production on Vercel, connect a
|
|
444
|
+
[Blob store](https://vercel.com/docs/vercel-blob) — its `BLOB_READ_WRITE_TOKEN`
|
|
445
|
+
switches image storage over automatically. Capture runs as one short server
|
|
446
|
+
call per page so it fits inside function time limits; keeping
|
|
447
|
+
`export const maxDuration = 300` on the dashboard's `page.tsx` adds headroom
|
|
448
|
+
for heavy pages.
|
|
449
|
+
|
|
440
450
|
See [DATABASE.md](../DATABASE.md) for schema, pooling notes, and retention.
|
|
441
451
|
|
|
442
452
|
Until a database URL is set, Polishd runs as a safe no-op in production: a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polishd/next",
|
|
3
|
-
"version": "0.2.3-dev.
|
|
3
|
+
"version": "0.2.3-dev.6",
|
|
4
4
|
"description": "Drop-in product analytics for Next.js — capture real user behavioral signals (rage/dead clicks, scroll depth, errors, web vitals) and explore them on a built-in dashboard. What gets measured gets improved.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|