#!/usr/bin/env node
import { createRequire as createRequire_BATI_CLI } from 'module';
const require = createRequire_BATI_CLI(import.meta.url);

import "../../../../chunk-IHX3I5SM.js";

// ../../boilerplates/aws/dist/files/$vite.config.ts.js
var plugin = `{
  name: "aws",
  apply: "build",

  applyToEnvironment(env) {
    return env.name === "ssr";
  },

  buildStart() {
    // Force emit an entry that can be used to retrieve the Hono app
    this.emitFile({
      type: "chunk",
      fileName: "aws.mjs",
      id: "virtual:photon:server-entry",
    });
  }
}`;
async function getViteConfig(props) {
  const viteConfig = await props.readfile();
  return viteConfig.replace("plugins: [", `plugins: [${plugin}, `);
}
export {
  getViteConfig as default
};
