Skip to content

fix(nextjs-preset): handle missing files in app-path-routes-manifest #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

jotanarciso
Copy link
Collaborator

Description

This PR fixes an issue with Next.js 14.2+ static exports where the build process would fail when trying to copy files referenced in the app-path-routes-manifest that don't physically exist (like _not-found.html).

The fix properly handles missing files by:

  1. Adding error handling for ENOENT errors during file copy operations
  2. Improving async flow with Promise.all to ensure all operations complete properly

Copy link

SCC Complexity Analysis

  • Title: fix(nextjs-preset): handle missing files in app-path-routes-manifest
  • Author: jotanarciso
Metric Source Branch (fix/nextjs-app-path-routes-manifest) Target Branch (main) Difference
Complexity 2524 2522 2
Code 39617 39606 11

@jotanarciso jotanarciso changed the base branch from main to stage April 11, 2025 18:38
@jotanarciso jotanarciso merged commit 1b79ccb into stage Apr 11, 2025
3 checks passed
@jotanarciso jotanarciso deleted the fix/nextjs-app-path-routes-manifest branch April 11, 2025 19:23
@jotanarciso
Copy link
Collaborator Author

🎉 This PR is included in version 1.18.2-stage.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jotanarciso
Copy link
Collaborator Author

🎉 This PR is included in version 1.18.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants