function getChunks(app, routerName, modIndex) {
	const router = app.getRouter(routerName);
	if (router.target !== "server") {
		return "";
	}

	try {
		const bundlerManifest = JSON.parse(
			readFileSync(viteManifestPath(router), "utf-8"),
		);

		const chunks = Object.entries(bundlerManifest)
			.filter(
				([name, chunk]) =>
					chunk.file.startsWith(CHUNK_PREFIX) && name !== router.handler,
			)
			.map(([name, chunk], index) => {
				const chunkPath = join(router.outDir, router.base, chunk.file);
				return `
				import * as mod_${index}_${modIndex} from '${chunkPath}';
				chunks['${chunk.file}'] = mod_${index}_${modIndex}
			`;
			})
			.join("\n");
		return chunks;
	} catch (e) {
		return "";
	}
}
@param {import('vinxi').App} app
@param {string} routerName
@param {number} modIndex
@returns