All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Workers - Use auxiliary Workers alongside full-stack frameworks

5mo ago

Source

CloudflareWorkers - Use auxiliary Workers alongside full-stack frameworkscloudflare.com
Snippet from the RSS feed
Auxiliary Workers are now fully supported when using full-stack frameworks, such as React Router and TanStack Start , that integrate with the Cloudflare Vite plugin . They are included alongside the framework's build output in the build output directory. Note that this feature requires Vite 7 or above. Auxiliary Workers are additional Workers that can be called via service bindings from your main (entry) Worker. They are defined in the plugin config, as in the example below: import { defineConfig } from "vite" ; import { tanstackStart } from "@tanstack/react-start/plugin/vite" ; import { cloudflare } from "@cloudflare/vite-plugin" ; export default defineConfig ( { plugins : [ tanstackStart () , cloudflare ( { viteEnvironment : { name : "ssr" }, auxiliaryWorkers : [ { configPath : "./wrangler.aux.jsonc" } ] , } ) , ] , } ) ; See the Vite plugin API docs for more info.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.