Join the Webstudio community

Home
Members
dlouthx
d
dlouthx
Offline, last seen 3 months ago
Joined December 13, 2024
Hi, has anyone tried configuring cloudflare workers to get a build and publish it to a subdomain in cloudflare pages? I'm having a bit of trouble with this. Maybe my wrangler.toml config is wrong.
2 comments
d
O
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}`,
      };
    }),
});