Restructure pages into pages/ dir, fix custom cursor, secure env vars - #165
Merged
Conversation
All 20 HTML pages now live in pages/ with references rewritten: - assets/favicon/canonical links, SEO URLs, inline fetches - vite build inputs, vercel.json rewrites, CI check - ambassador/admin/auth redirects, chatbot data fetch - regenerate sitemap, drop stale root-level dist artifacts
Cursor assets moved to public/cursor so they ship in dist; particles.js and asset references now use root-absolute /cursor/ paths instead of page-relative ./cursor/ which broke from /pages/* URLs
Admin redirect, campaign referral links and copied referral URLs now point to /pages/admin.html and /pages/r.html
- generate-env.js emits public config only (no HF_TOKEN / ADMIN_SECRET) - .env.example documents public vs server-only variables - chatbot.js: hardcoded HF token removed; posts to new /api/chat proxy - api/chat.js: serverless HF proxy using process.env.HF_TOKEN - api/blog-insert.js: validates ADMIN_SECRET server-side, inserts to Supabase - blogs.html admin flow validated server-side; no localStorage secret - feed scripts call GitHub anonymously (no client-side PAT) - delete chatbot 2.js (duplicate with leaked hardcoded token)
|
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.
Summary
Five commits reorganizing the repo and fixing a security leak.
The following credentials were exposed publicly (hardcoded in committed files or served via \public/env-public.json) and MUST be rotated:
After rotating: update .env, Vercel env vars (\HF_TOKEN, \ADMIN_SECRET, \GIT_OMNIKON_ALL\ for CI, Supabase/Firebase keys), and GitHub repo secrets.
Test
pm run build\ passes, 20 pages emitted under \dist/pages/\