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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
雷峰网
雷峰网
博客园 - 叶小钗
V
V2EX
博客园 - Franky
博客园_首页
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
S
SegmentFault 最新的问题
B
Blog RSS Feed
博客园 - 【当耐特】
D
Docker
N
Netflix TechBlog - Medium

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.