mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
db90c40a13
* Fix Nitro Vercel workflow routes * Simplify Nitro Vercel route fix * Support latest Nitro 3 stable builds * Remove unused Nitro Vercel webhook function output * Use generated Vercel functions for Nitro workflow routes
13 lines
379 B
TypeScript
13 lines
379 B
TypeScript
import { definePlugin } from 'nitro';
|
|
|
|
// Start the Postgres World
|
|
// Needed since we test this in CI
|
|
export default definePlugin(async () => {
|
|
if (process.env.WORKFLOW_TARGET_WORLD === '@workflow/world-postgres') {
|
|
import('workflow/runtime').then(async ({ getWorld }) => {
|
|
console.log('Starting Postgres World...');
|
|
await getWorld().start?.();
|
|
});
|
|
}
|
|
});
|