stack/examples/demo
Aman Ganapathy a9623d976a
[Refactor] [Fix] Remove default prod creation (#1350)
With the new bulldozer rework we dont support default products anymore.
Users are encouraged to currently manually handle granting products to
their end users.

We block api requests and new product creations that attempt to set no
price, and we remove any options to set include-by-default. We also
migrate users' existing product snapshots in `Subscriptions`,
`OneTimePurchases`, and `ProductVersions` to have no price set if it's
an include-by-default product. This will make it so that next time a
user goes onto their products page, they will be informed that the
pricing is invalid and it is no longer delivered by default.

Note, however, that these products will still be providing items and the
like to the users who have them.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Migrated legacy product snapshots so missing included-items no longer
break readers.
* Removed deprecated "include-by-default" pricing sentinel; pricing now
requires explicit price entries and write validation rejects the old
sentinel.

* **Chores**
* Simplified dashboard pricing flows: create/edit/save now use explicit
prices and surface an alert when a formerly implicit free plan needs an
explicit $0 price.
* Config overrides and stored data are auto-normalized to explicit price
objects.

* **Tests**
* Updated and added tests covering migration, validation, and switching
behavior for explicit prices.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: mantrakp04 <mantrakp@gmail.com>
Co-authored-by: Mantra <87142457+mantrakp04@users.noreply.github.com>
2026-05-15 10:38:33 -07:00
..
public Reworked Stack Auth demo (#624) 2025-04-15 02:03:07 +00:00
src [Refactor] [Fix] Remove default prod creation (#1350) 2026-05-15 10:38:33 -07:00
.env updated self host vars, reduced the number of required env vars 2024-12-08 16:29:08 -08:00
.env.development New { type: "hosted" } for page URLs (#1261) 2026-03-27 14:48:01 -07:00
.eslintrc.js tsup for stack-shared (#647) 2025-04-28 21:26:52 -07:00
.gitignore Move examples to their own folder (#77) 2024-06-16 14:58:10 +02:00
cli-sim.mjs feat: add anonRefreshToken to CLI auth flow and enhance session management (#1303) 2026-04-14 02:09:35 +00:00
LICENSE Move examples to their own folder (#77) 2024-06-16 14:58:10 +02:00
next.config.js Upgrade Prisma to v7 (#1064) 2025-12-26 08:13:34 -08:00
package.json chore: update package versions 2026-05-11 10:10:47 -07:00
postcss.config.js Move examples to their own folder (#77) 2024-06-16 14:58:10 +02:00
tailwind.config.js Support create-next-app@15 with the setup wizard (#340) 2024-11-13 13:58:42 +01:00
tsconfig.json New client (#135) 2024-07-19 22:07:44 -07:00