async function createViteBuild(config) {
	const cwd = process.cwd();
	process.chdir(config.root);
	const vite = await import("vite");
	const output = await vite.build({ ...config, configFile: false });
	process.chdir(cwd);
	return output;
}
@param {import("vite").InlineConfig & { router?: any; app: any }} config