-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix autogenerated append to original _headers file (#851)
* Fix autogenerated append to original _headers file Vercel hard links the public directory so when next-on-pages appends to the vercel output directory, it is also appending to the original `public/_headers` file too. This commit fixes the problem by copying the contents to memory before unlinking the file and creating a new (non-linked) file. Closes #848
- Loading branch information
1 parent
3bde1b0
commit 968171a
Showing
2 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@cloudflare/next-on-pages': patch | ||
--- | ||
|
||
Fix autogenerated content also getting appended to the original public/\_headers file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters