Skip to content

Commit

Permalink
fix: bad getApiContext() import
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed May 22, 2024
1 parent a571806 commit 765dd72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/astro/test/fixtures/actions/src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export const server = {
}),
subscribeFromServer: defineAction({
input: z.object({ channel: z.string() }),
handler: async ({ channel }) => {
const { url } = getApiContext();
handler: async ({ channel }, { url }) => {
return {
// Returned to ensure path rewrites are respected
url: url.pathname,
Expand Down

0 comments on commit 765dd72

Please sign in to comment.