-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Fix: stop executing
astro:server:setup
twice (#6693)"
This reverts commit c0b7864.
- Loading branch information
1 parent
f211245
commit fddf94d
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/astro/src/vite-plugin-integrations-container/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { Plugin as VitePlugin } from 'vite'; | ||
import type { AstroSettings } from '../@types/astro.js'; | ||
import type { LogOptions } from '../core/logger/core.js'; | ||
import { runHookServerSetup } from '../integrations/index.js'; | ||
|
||
/** Connect Astro integrations into Vite, as needed. */ | ||
export default function astroIntegrationsContainerPlugin({ | ||
settings, | ||
logging, | ||
}: { | ||
settings: AstroSettings; | ||
logging: LogOptions; | ||
}): VitePlugin { | ||
return { | ||
name: 'astro:integration-container', | ||
configureServer(server) { | ||
runHookServerSetup({ config: settings.config, server, logging }); | ||
}, | ||
}; | ||
} |