You’ll want to end up with that directive in an _redirects file which lives next to index.html after your project is built. I am not intimately familiar with Vue so not sure if you can “start out” with it in dist/ (assuming that is where your project is built to) or if you’d want to do something else like:
- if there is a separate “static assets” folder that you can put things like a favicon.ico in, you could try putting it there.
- you’d need to copy it in place afterwards from a different location; some static site generators prefer that. In that case you’d use a pattern like
yarn run build && cp redirects.txt dist/_redirectsas a build command (after creating /redirects.txt with the right content, and replacingyarn run buildwith whatever you actually use to build).
Hopefully one of those patterns can help, but let us know if not and perhaps link us to your build logs to help us give more specific advice in that case as well 