Skip to content

Commit

Permalink
fix: actions codegen types (#12995)
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre authored Jan 16, 2025
1 parent df90e6d commit 78fd73a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/real-hairs-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes a case where `astro:actions` types would not work when using `src/actions.ts`
2 changes: 1 addition & 1 deletion packages/astro/src/actions/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function astroIntegrationActionsRouteHandler({
}

const stringifiedActionsImport = JSON.stringify(
viteID(new URL('./actions/index.ts', params.config.srcDir)),
viteID(new URL('./actions', params.config.srcDir)),
);
settings.injectedTypes.push({
filename: ACTIONS_TYPES_FILE,
Expand Down

0 comments on commit 78fd73a

Please sign in to comment.