Content
@
0 reply
0 recast
0 reaction
Taylor
@taycaldwell
Is there a way to access Next.js (App Router) dynamic path params when handling Frame requests in Frames.js? Have a path like `/app/frames/[id]/route.ts` and I'm trying to get `id` without parsing the URL from the context (ctx). Feels like whatever `createFrames` returns should accept Next.js request `params`?
2 replies
1 recast
9 reactions
Taylor
@taycaldwell
For now, we are assigning the Next.js request parameter as a searchParam for the Frame context.
1 reply
0 recast
0 reaction
df
@df
you wrap the function frames like so: const handleRequest = (req, res) => frames(…)(req, res) and then access req.query
1 reply
0 recast
1 reaction
Taylor
@taycaldwell
I’ll try it. Thanks!
0 reply
0 recast
1 reaction