Skip to content

Replace Vercel with GitHub Pages subpath previews#137

Open
chagai95 wants to merge 1 commit into
mainfrom
claude/pr-preview-subpath
Open

Replace Vercel with GitHub Pages subpath previews#137
chagai95 wants to merge 1 commit into
mainfrom
claude/pr-preview-subpath

Conversation

@chagai95
Copy link
Copy Markdown
Collaborator

What changed

  • Drops vercel.json and the Vercel workflow.
  • Adds pr-preview.yml — every PR open/sync builds the site with BASE_PATH=/pr- and publishes it to gh-pages /pr-/. PR close removes the subfolder. No extra secrets, uses GITHUB_TOKEN.
  • svelte.config.js now reads process.env.BASE_PATH.

Preview URLs

After merge, each PR gets https://connectbern.ch/pr-/. Updates on every push.

PR builds are published to gh-pages /pr-<NUM>/ subfolder and served at https://connectbern.ch/pr-<NUM>/. svelte.config.js reads BASE_PATH so the build emits the right asset paths. Closing a PR removes its subfolder.
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