iterate.com / cloud

git clone https://git.iterate.com/repos/cloud

cloud / internal-packages / installer / worker / pretend-main.jsmain at aacbc74

// The pretend wizard's entry: the same Worker, with a deployer that acts a deploy out (no container).
import { COMMIT } from "./pretend-run.js";
import { handle as service, handles as serviceHandles } from "./service.js";
import { useCommits } from "./stack-commits.js";
import installer from "./index.js";

// The pretend Cloud has the one commit that its pretend run deploys (pretend-run.js).
useCommits(`${COMMIT}\n`);

export default {
  fetch: (request, env) =>
    serviceHandles(new URL(request.url)) ? service(request, env) : installer.fetch(request, env),
};
export { Deployer } from "./pretend-deployer.js";