Skip to content

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

Merged
leoortizz merged 2 commits intomasterfrom
leoortizz_nextjsPathFix
May 3, 2024
Merged

fix copied functions dist dir files for Next.js when source config ends with slash#7099
leoortizz merged 2 commits intomasterfrom
leoortizz_nextjsPathFix

Conversation

@leoortizz
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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