Vite plugin that fix dev server not rewriting the path includes a dot vite#2190
npm install --save-dev vite-plugin-rewrite-all
Add it to vite.config.js
import pluginRewriteAll from 'vite-plugin-rewrite-all';
export default {
plugins: [pluginRewriteAll()]
}
As long as you can rewriting all path, this should work for you.
Copyright (c) 2021-present, AlphaTr