Skip to content

fix(web): support custom domain asset paths#91

Merged
minorcell merged 2 commits intomainfrom
dev
Feb 6, 2026
Merged

fix(web): support custom domain asset paths#91
minorcell merged 2 commits intomainfrom
dev

Conversation

@minorcell
Copy link
Owner

Problem

After enabling a custom domain (https://memo.mcell.top/), static assets were requested under a repository subpath (/memo-cli/...) and the site rendered blank.

Root cause

web/next.config.ts auto-derived basePath from repository name whenever running in GitHub Actions.

Fix

  • Allow explicit NEXT_PUBLIC_BASE_PATH override in web/next.config.ts.
  • In Pages workflow, set NEXT_PUBLIC_BASE_PATH: '' for custom-domain deployment.
  • Keep fallback behavior to repository subpath when override is not provided.

Validation

  • cd web && NEXT_PUBLIC_BASE_PATH='' GITHUB_ACTIONS=true GITHUB_REPOSITORY=minorcell/memo-cli pnpm build
  • Output now references root paths (/logo.svg, /_next/...) suitable for custom domain.

@minorcell minorcell merged commit 5324556 into main Feb 6, 2026
2 checks passed
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