Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Fix static export paths for GitHub Actions - #3

Merged
MouadBourbian merged 1 commit into
mainfrom
develop
Feb 7, 2026
Merged

Fix static export paths for GitHub Actions#3
MouadBourbian merged 1 commit into
mainfrom
develop

Conversation

@MouadBourbian

Copy link
Copy Markdown
Owner

This pull request updates the Next.js configuration to improve compatibility with GitHub Actions deployments. The main change is the introduction of dynamic path and asset handling based on the repository name, ensuring that static exports work correctly when deployed from GitHub Actions.

Deployment compatibility improvements:

  • Dynamically sets basePath and assetPrefix in next.config.ts based on the repository name when running in GitHub Actions, enabling correct routing and asset loading for static exports.
  • Configures images to be unoptimized in next.config.ts, which is necessary for static export scenarios.

@MouadBourbian MouadBourbian self-assigned this Feb 7, 2026
@MouadBourbian
MouadBourbian merged commit 0791fb5 into main Feb 7, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant