Add Vercel static-site deployment for the landing page - #1
Draft
mlmrx wants to merge 1 commit into
Draft
Conversation
The full app needs a persistent server and local SQLite, so static hosts get only the self-contained landing page: scripts/build-site.mjs copies land.html (as index.html) and land.js into dist-site/, and vercel.json builds that directory with the same security headers the sovereign server sends. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SAPZf6jJFm45TyBnvzdM6o
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.
What
Makes the repo deployable to Vercel (for the mysovereign.ai domain) as a static landing site:
scripts/build-site.mjs— assemblesdist-site/from the self-contained landing page:public/land.htmlbecomesindex.htmlandpublic/land.jscomes along. No dependencies, plainnode scripts/build-site.mjs.vercel.json— zero-install static build (installCommand: ""), servesdist-site/, and sends the same hardening headers the sovereign server applies (applySecurityHeadersinsrc/util.js), so the page runs under the identical CSP it was written for (external scripts only, inline styles allowed)..gitignore— ignoresdist-site/.Why only the landing page
The full app is a persistent Node server with a local SQLite database (
node:sqlite) and filesystem state — it cannot run on Vercel's serverless platform. The app itself stays self-hosted (sovereign start, Docker, orsovereign byoc); Vercel hosts the marketing/landing page.To go live on mysovereign.ai
mlmrx/SovereignAIat vercel.com/new — the build settings are read fromvercel.jsonautomatically.mysovereign.ai(andwww.mysovereign.ai), then point DNS as Vercel instructs (A76.76.21.21for the apex, CNAMEcname.vercel-dns.comfor www).Note: if a waitlist endpoint is later configured in
land.html'swaitlist-endpointmeta tag, its origin must be added toconnect-srcin thevercel.jsonCSP.Generated by Claude Code