Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(withAxiom): Change order, add return type #152

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Conversation

bahlo
Copy link
Member

@bahlo bahlo commented Sep 14, 2023

The dynamic route in the example was failing when withAxiom(param: NextConfig) came before withAxiom(NextHandler), reversing them did the trick.

See

export const POST = withAxiom((req: AxiomRequest, { params }: { params: { id: string}}) => {

@vercel
Copy link

vercel bot commented Sep 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
next-axiom-example ✅ Ready (Inspect) Visit Preview Sep 14, 2023 11:12am

@bahlo bahlo merged commit c4cf675 into main Sep 14, 2023
9 checks passed
@bahlo bahlo deleted the arne/fix-with-axiom branch September 14, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants