You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that my deployment failed on Netlify because there was no dist folder in the source code.
I solved this by creating a .gitignore file in the dist directory with some specific exclusions (thanks clever StackOverflow person for explaining how to do this), and removing this line from the .gitignore in the root directory:
/dist
That way, it uploaded an empty dist directory and Netlify could now deploy/build into to that dir.
Now, I'm a newbie, so it's very possible that I either misunderstood something in the docs, or there is a better way to do this.
But if it is a possible issue that others (like me) might run into, I thought it might be worth amending the docs. I'd send a PR, but there may well be a better way of doing this than above!
E.g. Netlify or Vercel. Additionally, include documentation or a link on the README to enable users to deploy their own site directly from this repo.
The text was updated successfully, but these errors were encountered: