-
` const app = new Frog({ app.frame( export const GET = handle(app); Not able to generate images tried with an image handler too by creating another route '/img' and passing image through there and having image attribute as '/img'. Not able to generate html images. Have tried everything. The path is correct. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
cannot reproduce, which URL are you checking out? would appreciate a min. repro. |
Beta Was this translation helpful? Give feedback.
-
So Im working on a NextJs project, we have, In We have,
Which works completely fine. HTML Rendering and all, this is from the test next js repo. Although now ive written another api, in This is the code for that,
For now I haven't done the fetching from a JSON file just trying to make this work since this is a blocker. |
Beta Was this translation helpful? Give feedback.
there are multuple specifics of nextjs itself so min. repro would be greatly appreciated.
i have to take a guess based on what you've said that your new file is located at
/api/frog/:frameId/route.tsx
. If so, it should be changed to/api/frog/[[...routes]/route.tsx
, because image rendering is a subroute and not gonna work otherwise. the catch-all route group is very important here.if I got you wrong, please create a minimal repro, not just a code. something that I can clone and run.