fix: allow setting server config from fresh config (#1889)

This commit is contained in:
Marvin Hagemeister
2023-10-09 13:59:30 +02:00
committed by GitHub
parent 4fac2a22a6
commit 32eb61c95d
11 changed files with 266 additions and 6 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ export async function dev(
config.dev = true;
config.loadSnapshot = false;
const ctx = await getServerContext(config);
await startFromContext(ctx, options);
await startFromContext(ctx, config.server);
} else {
// Legacy entry point: Back then `dev.ts` would call `main.ts` but
// this causes duplicate plugin instantiation if both `dev.ts` and