Join the Webstudio community

Updated 3 months ago

Triggering Cloudflare templates to deploy

At a glance

The post is a code snippet from a deploymentRouter that appears to be part of a Remix project. The community member is asking where the Cloudflare template is triggered in the deploymentRouter to force Remix to build the project and push it to Cloudflare. The code snippet shows a publish mutation that returns a failure response with an error message indicating that the logic has not been implemented yet.

Hi, do you know where the Cloudflare template is triggered in the deploymentRouter to force Remix to build the project and push it to Cloudflare?

Plain Text
export const deploymentRouter = router({
  publish: procedure
    .input(PublishInput)
    .output(Output)
    .mutation(async ({ input }) => {
      // eslint-disable-next-line no-console
      // Logic should be implemented here
      return {
        success: false,
        error: `Not implemented, use buildId=${input.buildId}`,
      };
    }),
});
Add a reply
Sign up and join the conversation on Discord