惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
U
Unit 42
MyScale Blog
MyScale Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
量子位
IT之家
IT之家
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Recent Announcements
Recent Announcements
V
Visual Studio Blog
G
Google Developers Blog
Last Week in AI
Last Week in AI
雷峰网
雷峰网
博客园 - 聂微东
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
博客园 - 司徒正美
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
月光博客
月光博客
aimingoo的专栏
aimingoo的专栏

Workflow SDK Documentation

Patterns for Defining Tools Human-in-the-Loop Building Durable AI Agents Queueing User Messages Resumable Streams Sleep, Suspense, and Scheduling Streaming Updates from Tools API Reference Workflow Globals Changelog Resilient run start Cookbook Building a World Deploying Astro Express Fastify Hono Getting Started NestJS Next.js Nitro Nuxt Python SvelteKit Vite corrupted-event-log fetch-in-workflow hook-conflict Errors
workflow
2026-06-12 · via Workflow SDK Documentation

Configure Astro to transform workflow directives.

Returns an Astro integration that transforms workflow code ("use step"/"use workflow" directives) and builds the workflow bundles.

To enable "use step" and "use workflow" directives while developing locally or deploying to production, add workflow() to the integrations array of your Astro config.

// @ts-check
import { defineConfig } from "astro/config";
import { workflow } from "workflow/astro"; 

// https://astro.build/config
export default defineConfig({
  integrations: [workflow()], 
});

The integration registers the workflow Vite transform plugins during astro:config:setup and builds the workflow bundles — locally during config setup, or via the Vercel builder after astro:build:done when deploying to Vercel.

Parameters

This function does not accept any parameters in workflow 4.x. (5.x adds an options object with a sourcemap setting.)

Returns

Returns an AstroIntegration object to include in the integrations array of your Astro config.