{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/next.js/issues/3668","repository_url":"https://api.github.com/repos/zeit/next.js","labels_url":"https://api.github.com/repos/zeit/next.js/issues/3668/labels{/name}","comments_url":"https://api.github.com/repos/zeit/next.js/issues/3668/comments","events_url":"https://api.github.com/repos/zeit/next.js/issues/3668/events","html_url":"https://github.com/zeit/next.js/issues/3668","id":294117421,"number":3668,"title":"next export: copy files to root level of export folder - \"out\"","user":{"login":"divyenduz","id":746482,"avatar_url":"https://avatars3.githubusercontent.com/u/746482?v=4","gravatar_id":"","url":"https://api.github.com/users/divyenduz","html_url":"https://github.com/divyenduz","followers_url":"https://api.github.com/users/divyenduz/followers","following_url":"https://api.github.com/users/divyenduz/following{/other_user}","gists_url":"https://api.github.com/users/divyenduz/gists{/gist_id}","starred_url":"https://api.github.com/users/divyenduz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divyenduz/subscriptions","organizations_url":"https://api.github.com/users/divyenduz/orgs","repos_url":"https://api.github.com/users/divyenduz/repos","events_url":"https://api.github.com/users/divyenduz/events{/privacy}","received_events_url":"https://api.github.com/users/divyenduz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-03T15:02:26Z","updated_at":"2018-02-03T15:51:38Z","closed_at":"2018-02-03T15:51:38Z","author_association":"CONTRIBUTOR","body":"- [x] I have searched the [issues](https://github.com/zeit/next.js/issues) of this repository and believe that this is not a duplicate.\r\n\r\n## Expected Behavior\r\nI should have a way to copy files to root of `out` folder while doing `next export`. I thought about doing this in `exportPathMap` in `next.config.js` but I am not sure when `out` folder will be created for me to copy files. \r\n\r\n## Current Behavior\r\nI could not find how to do this in docs, so, I am not sure if it is possible. Is there a standard way of doing this?\r\n\r\n## Steps to Reproduce (for bugs)\r\nNA\r\n\r\n## Context\r\nI was trying to setup [netlify redirect](https://www.netlify.com/docs/redirects/) and that requires me to place a `_redirects` file in the `out` folder. I am not clear yet on how to achieve that in the build step. \r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n| Tech    | Version |\r\n|---------|---------|\r\n| next    |   v4.2.3      |\r\n| node    |   v8.4.0      |\r\n| OS      |    MacOS high sierra 10.13.3  |\r\n| browser |    63.0.3239.132     |\r\n| etc     |         |\r\n"},"comment":{"url":"https://api.github.com/repos/zeit/next.js/issues/comments/362824957","html_url":"https://github.com/zeit/next.js/issues/3668#issuecomment-362824957","issue_url":"https://api.github.com/repos/zeit/next.js/issues/3668","id":362824957,"user":{"login":"divyenduz","id":746482,"avatar_url":"https://avatars3.githubusercontent.com/u/746482?v=4","gravatar_id":"","url":"https://api.github.com/users/divyenduz","html_url":"https://github.com/divyenduz","followers_url":"https://api.github.com/users/divyenduz/followers","following_url":"https://api.github.com/users/divyenduz/following{/other_user}","gists_url":"https://api.github.com/users/divyenduz/gists{/gist_id}","starred_url":"https://api.github.com/users/divyenduz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divyenduz/subscriptions","organizations_url":"https://api.github.com/users/divyenduz/orgs","repos_url":"https://api.github.com/users/divyenduz/repos","events_url":"https://api.github.com/users/divyenduz/events{/privacy}","received_events_url":"https://api.github.com/users/divyenduz/received_events","type":"User","site_admin":false},"created_at":"2018-02-03T15:51:38Z","updated_at":"2018-02-03T15:51:38Z","author_association":"CONTRIBUTOR","body":"Sounds like a plan. I think this would be the recommended way as well. \r\n\r\nClosing the issue, Thanks. "}}
{"actor":{"display_login":"divyenduz"}}