Skip to content

feat(managed-cloud): SaaS signup, billing, and onboarding#35

Draft
jack-arturo wants to merge 3 commits into
mainfrom
feat/managed-cloud
Draft

feat(managed-cloud): SaaS signup, billing, and onboarding#35
jack-arturo wants to merge 3 commits into
mainfrom
feat/managed-cloud

Conversation

@jack-arturo
Copy link
Copy Markdown
Member

Summary

Managed Cloud launch stack (from Codex session), cleanly separated from the emdash CMS auth work already on main.

  • D1 schema: 7 new tables for managed accounts, onboarding, enrichment, webhooks, idempotency, funnel events
  • API v1 endpoints: signup, status, subscribe, customer-portal, webhooks (Stripe + Instapods), onboarding chat, enrichment, preseed, verification-resend, tracking
  • Stripe integration: Checkout sessions, customer portal, webhook handlers for payment events
  • Instapods provisioning: Pod creation with webhook-based status updates
  • Frontend pages: /start, /subscribe, /dashboard, /onboarding, /waitlist, /install.sh
  • React onboarding: Interview chatbot component with state machine
  • Homepage/nav: Updated CTAs to prioritize Managed Cloud path
  • Docs: New managed-cloud getting-started guide

Test plan

  • npm run build passes (65 HTML pages, SSR routes generated)
  • npm test passes (6/6 tests: signup idempotency, onboarding state, billing webhooks, homepage CTA, start page, dashboard controls)
  • Verify Cloudflare Pages preview deploy builds
  • Verify emdash admin routes still work (/_emdash/admin, /_emdash/.well-known/auth)
  • Manual test: signup flow → email verification → onboarding → subscribe

Managed Cloud launch stack built by Codex:
- D1 tables for accounts, onboarding, enrichment, webhooks, funnel events
- API v1 endpoints: signup, status, subscribe, customer-portal, webhooks,
  onboarding chat, enrichment, preseed, verification-resend, tracking
- Stripe integration (checkout, portal, webhook handlers)
- Instapods pod provisioning with webhook callbacks
- React onboarding component with interview state machine
- New pages: /start, /subscribe, /dashboard, /onboarding, /waitlist
- Homepage and nav updated with Managed Cloud CTAs
- Managed Cloud getting-started docs page
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 3, 2026

Deploying automem-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: ac3db06
Status:🚫  Build failed.

View logs

The explicit `session: undefined` for production builds was preventing
the @astrojs/cloudflare adapter from auto-configuring KV sessions.
This caused passkey login to fail because the session couldn't be
created after successful WebAuthn verification.

Use object spread to only set the filesystem session driver in dev,
leaving the key absent (not undefined) for production builds so the
adapter's KV auto-config takes effect.
@jack-arturo jack-arturo marked this pull request as draft May 22, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant