#Cloudflare Workers Hosting - Docs

1 messages · Page 1 of 1 (latest)

quartz knoll
#

Hello, I noticed the docs today only mention hosting via Cloudflare Pages.

It would be great to have 1-st class docs for Cloudflare Worker deployments too


i managed to do this manually via https://charleswilliamson.com/how-to-deploy-tanstack-start-to-cloudflare-workers/

using:

server: {
    preset: 'cloudflare-module',
    unenv: cloudflare,
  },
lament dew
#

Thanks for the guide! How do you deal with .env variables?

sacred notch
#

This used to work for me before devinxi. The preset value moved to the target inside the new Vite plugin, but I'm not sure where/how to configure the unenv value.

tanstackStart({
  target: "cloudflare_module",
})

Any idea how to pass unenv?

sacred vector
sacred notch
#

This worked before devinxi ☝️ Your example is still for vinxi unfortunately.

polar birch
sacred vector
sacred notch