I am trying to debug some redirects and headers issues present in my site, which is an app in an monorepo. I have a few questions so that I can make sure I have the correct setup:
-
Where is the recommended location for _redirects and _headers files in a monorepo app? The docs at Build configuration overview | Netlify Docs mention to place them inside the publish/build directory. The docs at Introducing the Enhanced Monorepo Experience on Netlify | Netlify illustrate an example where the _redirects file is in the app root.
-
Should I expect to see these files in the Deploy File Viewer for a netlify deploy? I am manually deploying the site via netlify deploy. In the deploy logs, it says that redirect and header rules are processed, but no _redirects or _headers files exist within the Deploy File Viewer.
-
What is the recommended command when deploying a monorepo app via netlify deploy? Do I only need to add the filter option? e.g. netlify deploy --filter apps/my-app. I am deploying in a non-interactive environment and have tried many of the solutions here: CI failing with "We've detected multiple sites inside your repository" · Issue #5977 · netlify/cli · GitHub. To be clear, it is deploying, but I want to confirm that I am using the correct command.