Skip to content

Add personalized lead demo websites with persisted AI content - #8

Merged
jim74763 merged 17 commits into
mainfrom
claude/slug-page-drizzle-postgres-vn8fj0
Oct 16, 2026
Merged

jim74763 merged 17 commits into
mainfrom
claude/slug-page-drizzle-postgres-vn8fj0

Conversation

@jim74763

Copy link
Copy Markdown
Owner

Adds public, personalized demo websites at /site/[leadId]. Leads are retrieved from Instantly, matched to a business template, and used to generate structured copy through OpenRouter; generated sites are stored in Postgres with Drizzle migrations and schema versioning.

Updates business templates with stories, contact details, maps, preview navigation, and shared navigation components.

Public access for anyone holding a demo URL, including email recipients, is intentional and approved by the project owner. Demo pages request no search indexing.

Production requires the documented environment variables and database migrations. A code review and build checks will follow PR creation; this PR does not itself certify production readiness.

claude and others added 17 commits September 26, 2026 10:01
Fetches the Instantly lead on first visit, picks a template by industry,
writes the copy through OpenRouter and stores lead and content in Postgres
via a Drizzle schema. Later visits are served from the database.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011A3nyMynE8LhtmuJ9XMpnZ
- Derive template types from Zod schemas and validate stored sites
- Add database migrations for versioned generated content
- Relocate lead-site generation and remove obsolete OpenRouter modules
- Upgrade Next.js and update image and development origin settings
Temporarily replace lead site rendering with a lead ID placeholder and
disable generated metadata.
Introduce a shared two-paragraph story schema, generated copy guidance,
and
styled story sections across all website templates. Bump template
versions to
regenerate existing sites with the new content.
Separate content generation, persistence, and stored-site validation
while
preserving current rows during concurrent generation.
Configure project-wide formatting with single quotes and no semicolons,
add format scripts and ignore generated files, and apply formatting
across
the codebase and references.
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
template-site Ready Ready Preview Oct 13, 2026 4:42pm UTC

@jim74763
jim74763 force-pushed the claude/slug-page-drizzle-postgres-vn8fj0 branch from 9ca0a9f to a9c772c Compare October 13, 2026 16:44
@jim74763
jim74763 merged commit e38e558 into main Oct 16, 2026
2 of 4 checks passed
@jim74763
jim74763 deleted the claude/slug-page-drizzle-postgres-vn8fj0 branch October 16, 2026 10:20

This branch was successfully deployed

1 active (outdated) deployment
Preview — 9ca0a9f0 Deployed Oct 13, 2026 by vercel[bot]
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.

2 participants