mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
0f557d5ae4
* Statically inject workflow world target * Fix static world injection in host bundles * Fix static world injection gaps * Fix Vite Nitro server startup * Fix Nitro pg-native aliasing * Fix static world target CI gaps * Fix static world dev rebuild gaps * Avoid broad runtime alias in Nitro * Refresh Next dev route for step HMR * Externalize Nest target world * Use canary HMR rediscovery timeout * Bundle local world in Nest builds * Dedupe world target helpers and fix SvelteKit chunk patch guard
16 lines
372 B
TypeScript
16 lines
372 B
TypeScript
import { defineNitroConfig } from 'nitro/config';
|
|
|
|
const plugins =
|
|
process.env.WORKFLOW_TARGET_WORLD === '@workflow/world-postgres'
|
|
? ['plugins/start-pg-world.ts']
|
|
: [];
|
|
|
|
export default defineNitroConfig({
|
|
modules: ['workflow/nitro'],
|
|
vercel: { entryFormat: 'node' },
|
|
routes: {
|
|
'/**': { handler: './src/index.ts', format: 'node' },
|
|
},
|
|
plugins,
|
|
});
|