feat: add plugin configResolved (#2055)
This commit is contained in:
@@ -60,6 +60,13 @@ export async function getServerContext(state: InternalFreshState) {
|
||||
await import("preact/debug");
|
||||
}
|
||||
|
||||
// Plugins are already instantiated in build mode
|
||||
if (!state.build) {
|
||||
await Promise.all(
|
||||
config.plugins.map((plugin) => plugin.configResolved?.(state.config)),
|
||||
);
|
||||
}
|
||||
|
||||
const extractResult = await extractRoutes(state);
|
||||
|
||||
// Restore snapshot if available
|
||||
|
||||
Reference in New Issue
Block a user