Skip to content

Commit

Permalink
Allow _redirects to be placed in root directory (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
roschaefer authored Jun 1, 2021
1 parent fc19b63 commit 3b988a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-ligers-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-netlify': patch
---

Allow `_redirects` to be placed in root directory
1 change: 1 addition & 0 deletions packages/adapter-netlify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function () {
utils.copy_client_files(publish);

utils.log.minor('Writing redirects...');
utils.copy('_redirects', `${publish}/_redirects`);
appendFileSync(`${publish}/_redirects`, '\n\n/* /.netlify/functions/render 200');
}
};
Expand Down

0 comments on commit 3b988a4

Please sign in to comment.