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
18 lines
507 B
TypeScript
18 lines
507 B
TypeScript
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
|
|
import viteReact from '@vitejs/plugin-react';
|
|
import { nitro } from 'nitro/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { workflow } from 'workflow/vite';
|
|
|
|
const nitroPlugins =
|
|
process.env.WORKFLOW_TARGET_WORLD === '@workflow/world-postgres'
|
|
? ['./plugins/start-pg-world.ts']
|
|
: [];
|
|
|
|
export default defineConfig({
|
|
plugins: [workflow(), tanstackStart(), nitro(), viteReact()],
|
|
nitro: {
|
|
plugins: nitroPlugins,
|
|
},
|
|
});
|