We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preview
If you start build preview vite preview of npm run preview, it not working, any api request returns index page.
vite preview
npm run preview
The text was updated successfully, but these errors were encountered:
There are the docs https://vitejs.dev/guide/api-plugin.html#configurepreviewserver
import { Connect, Plugin, PreviewServerForHook, ViteDevServer } from "vite"; export const ViteMockServer = (options?: MockOptions): Plugin => { return { name: PLUGIN_NAME, configureServer: createConfiguratedServer(options), configurePreviewServer: createConfiguratedServer(options), }; }; const createConfiguratedServer = (options: MockOptions = {}) => { return async (server: ViteDevServer | PreviewServerForHook) => { // code }; };
Sorry, something went wrong.
No branches or pull requests
If you start build preview
vite preview
ofnpm run preview
, it not working, any api request returns index page.The text was updated successfully, but these errors were encountered: