Skip to content
Discussion options

You must be logged in to vote

This worked for me, for handling a stripe webhook in a route handler.

export async function POST(request) {
  const rawBody = await request.text()
  // ...
}

No special configuration needed. (Next 13.5 app dir)

Replies: 14 comments 21 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@colllin
Comment options

@RahmanQureshi
Comment options

Comment options

You must be logged in to vote
9 replies
@alicescfernandes
Comment options

@devopsangel
Comment options

@alicescfernandes
Comment options

@devopsangel
Comment options

@Noitidart
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mcgraphix
Comment options

@sacru2red
Comment options

Comment options

You must be logged in to vote
1 reply
@dalmo3
Comment options

Comment options

You must be logged in to vote
4 replies
@danielcamargo
Comment options

@Koyamie
Comment options

@ValentineCodes
Comment options

@italodeandra
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ashxjs
Comment options

@abdulbari149
Comment options

@siamahnaf
Comment options

Answer selected by leerob
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
Converted from issue

This discussion was converted from issue #13405 on September 06, 2020 14:40.