Draft
Conversation
dabf7b2 to
7a9f3fb
Compare
7a9f3fb to
c2203d9
Compare
|
mkaput
reviewed
Apr 8, 2026
| import starlightLlmsTxt from "starlight-llms-txt"; | ||
|
|
||
| const site = "https://agentic-engineering.swmansion.com/"; | ||
| const base = process.env.BASE_PATH || "/"; |
Member
There was a problem hiding this comment.
I'm not sure setting default to "/" won't break Astro in some weird way. Wouldn't it be safer to default to undefined or null?
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.
Preview Deployments — One-Time Setup
PR previews deploy to
https://agentic-engineering.swmansion.com/pr-preview/pr-{number}/via thepreview.ymlworkflow.Three settings must be configured in the GitHub repository before this works.
1. GitHub Pages source
Go to Settings → Pages.
Change Source from GitHub Actions to Deploy from a branch, then set:
gh-pages/ (root)The
gh-pagesbranch is created automatically on the first production deploy after this change.2. Workflow permissions
Go to Settings → Actions → General → Workflow permissions.
Select Read and write permissions and save.
This allows the deploy and preview workflows to push to the
gh-pagesbranch.3. BASE_PATH variable (forks only)
When running on a fork, GitHub Pages serves the site under the repository name (e.g.
https://username.github.io/agentic-engineering/).The production and preview builds need to know this prefix.
Go to Settings → Secrets and variables → Actions → Variables → New repository variable:
Do not set this variable on the main repository — leave it unset so the site builds with
base: /for the custom domain.How it works
main→deploy.ymlbuilds the site and pushes togh-pagesroot, preserving thepr-preview/directory.preview.ymlbuilds withBASE_PATHset to{BASE_PATH}/pr-preview/pr-{number}/and deploys togh-pagesat that path.A sticky bot comment is posted on the PR with the preview URL.
preview.ymlremovespr-preview/pr-{number}/fromgh-pagesand updates the comment.Notes
public/.nojekylldisables Jekyll processing on thegh-pagesbranch, which would otherwise strip the_astro/directory.actions/deploy-pages(still in internal alpha as of 2026).This setup uses
rossjrw/pr-preview-actionas a workaround.