Skip to content
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

fix copied functions dist dir files for Next.js when source config ends with slash #7099

Merged
merged 2 commits into from
May 3, 2024

Conversation

leoortizz
Copy link
Member

Description

path.replace was breaking when source dir was e.g. web/, causing the final folder to be .hosting/functions.next instead of .hosting/functions/.next. Fixes #7062

Scenarios Tested

Sample Commands

Copy link
Member

@jamesdaniels jamesdaniels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still work in windows?

@leoortizz
Copy link
Member Author

Does this still work in windows?

yep, it also fixes the same issue on Windows. join FTW!

@leoortizz leoortizz merged commit dcc3d90 into master May 3, 2024
35 checks passed
@leoortizz leoortizz deleted the leoortizz_nextjsPathFix branch May 3, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Next.js SSR Deployment fails due to wrong firebase-tools creating wrong folder
2 participants