Files
Nathan Colosimo db90c40a13 Fix Nitro Vercel workflow routes (#2645)
* 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
2026-06-30 06:06:53 +00:00

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?.();
});
}
});