@flowcraft/next-plugin
v1.0.0-alpha.0
Published
Next.js plugin for Flowcraft compiler integration
Maintainers
Readme
@flowcraft/next-plugin
Next.js plugin for automatic Flowcraft workflow compilation.
Installation
npm install @flowcraft/next-pluginUsage
Update your next.config.js:
const { withFlowcraft } = require('@flowcraft/next-plugin');
module.exports = withFlowcraft({
// ... your Next.js config
});Your Flowcraft workflows will be automatically compiled during production builds.
Development Mode
For development, the plugin currently only runs during production builds to avoid conflicts with Next.js Fast Refresh. You can run the compiler manually or set up a file watcher:
# Run once
npx @flowcraft/compiler
# Or set up a watcher
npx @flowcraft/compiler --watchSee the @flowcraft/compiler README for more details.
