Open aschmelyun opened 3 years ago
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!
This is the .gitignore
file I created in the local dist
directory:
https://gist.github.com/adrelliott/5357698f1477cfbe4dacff631c808390
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.