Skip to content

Commit

Permalink
fix: make adapter the last element of integrations instead of the first
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang-Jh committed Jan 1, 2025
1 parent f706899 commit d2d1802
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/breezy-bottles-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

fix: make adapter the last element of integrations instead of the first
2 changes: 1 addition & 1 deletion packages/astro/src/integrations/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export async function runHookConfigSetup({
}): Promise<AstroSettings> {
// An adapter is an integration, so if one is provided add it to the list of integrations.
if (settings.config.adapter) {
settings.config.integrations.unshift(settings.config.adapter);
settings.config.integrations.push(settings.config.adapter);
}
if (await isActionsFilePresent(fs, settings.config.srcDir)) {
settings.config.integrations.push(astroIntegrationActionsRouteHandler({ settings }));
Expand Down

0 comments on commit d2d1802

Please sign in to comment.