Conversation
- Add Stripe checkout session and customer portal via tRPC - Add webhook handler for checkout.completed, subscription.updated/deleted, invoice.payment_failed - Add pricing page with 3-tier cards (Free, Tier 1 RM45/mo, Tier 2 RM75/mo) - Add upgrade/manage billing buttons to dashboard settings - Add Stripe fields to User type (stripeCustomerId, stripeSubscriptionId, stripeCurrentPeriodEnd) - Add TIER_PRICING constants to kal-shared - Add DB migration for Stripe user fields - Fix email unique index bug (E11000 duplicate key on null emails) - Migration 2: sparse index (insufficient) - Migration 3: partialFilterExpression on string type (correct fix) - Fix context.ts to not set email: null explicitly on upsert - Add stripe and @stripe/stripe-js dependencies
- Create site-config.ts with centralized env var helpers (SITE_URL, SITE_DOMAIN, API_URL_DISPLAY, SUPPORT_EMAIL, PRIVACY_EMAIL) - Replace all hardcoded kalori-api.my references with env vars in layout, robots, sitemap, terms, privacy pages - Replace all hardcoded api.kalori-api.my in docs, setup, and api-docs code examples - Add production env var validation to backend (exits if critical vars missing) - Restrict CORS localhost origins to development only - Fix Logto port mismatch in backend .env.example (3301 -> 3001) - Add BACKEND_BASE_URL, PUBLIC_URL to backend .env.example - Add NEXT_PUBLIC_SITE_URL, SITE_DOMAIN, API_DOMAIN, SUPPORT_EMAIL, PRIVACY_EMAIL to frontend .env.example - All .env.example defaults use localhost (safe for public repo)
- Make pricing page accessible without authentication - Visitors see plans with sign-in CTAs, authenticated users can subscribe/manage billing - Add standalone navbar and footer to pricing page - Add pricing link to landing page navbar - Add v1.1.0 changelog entry
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Brief description of what this PR does.
🔗 Related Issue
Fixes #(issue number)
🏷️ Type of Change
✅ Checklist
dev(notmain)pnpm lint:fixpnpm typecheck📸 Screenshots (if applicable)
Add screenshots to help explain your changes.
🧪 How to Test
Steps to test this PR:
📝 Additional Notes
Any additional information reviewers should know.