Skip to content

Commit

Permalink
Fix: stop executing astro:server:setup twice (#6693)
Browse files Browse the repository at this point in the history
* fix: remove integrations container plugin

* chore: changeset
  • Loading branch information
bholmesdev authored Mar 28, 2023
1 parent af108e4 commit c0b7864
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-zoos-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix: avoid calling `astro:server:setup` integration hook in production
2 changes: 0 additions & 2 deletions packages/astro/src/core/create-vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import envVitePlugin from '../vite-plugin-env/index.js';
import astroHeadPlugin from '../vite-plugin-head/index.js';
import htmlVitePlugin from '../vite-plugin-html/index.js';
import { astroInjectEnvTsPlugin } from '../vite-plugin-inject-env-ts/index.js';
import astroIntegrationsContainerPlugin from '../vite-plugin-integrations-container/index.js';
import jsxVitePlugin from '../vite-plugin-jsx/index.js';
import astroLoadFallbackPlugin from '../vite-plugin-load-fallback/index.js';
import markdownVitePlugin from '../vite-plugin-markdown/index.js';
Expand Down Expand Up @@ -119,7 +118,6 @@ export async function createVite(
htmlVitePlugin(),
jsxVitePlugin({ settings, logging }),
astroPostprocessVitePlugin({ settings }),
astroIntegrationsContainerPlugin({ settings, logging }),
astroScriptsPageSSRPlugin({ settings }),
astroHeadPlugin({ settings }),
astroScannerPlugin({ settings }),
Expand Down
20 changes: 0 additions & 20 deletions packages/astro/src/vite-plugin-integrations-container/index.ts

This file was deleted.

0 comments on commit c0b7864

Please sign in to comment.