Do we have an updated version of swagger page code for Next13? #560
-
I tried updating the code with the below code but it only threw more errors saying
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Yeah, it should be fine @JohnVersus I've just tested with example app. Could you take a look at example folder? That's using nextjs v13. Thanks. |
Beta Was this translation helpful? Give feedback.
-
You tried with the code that I shared and it worked? Are you referring to this folder? |
Beta Was this translation helpful? Give feedback.
-
Ahh!! Just saw the example folder. Seems it is using the pages folder. I had trouble using it with app folder. I was able to make it work with the pages folder without any changes, but not with the app folder. |
Beta Was this translation helpful? Give feedback.
-
I see. I will give it a try soon :) Thanks.
…On 27 Nov 2022 at 2:33 PM +0800, JohnVersus ***@***.***>, wrote:
Ahh!! Just saw the example folder. Seems it is using the pages folder. I had trouble using it with app folder.
I was able to make it work with the pages folder without any changes, but not with the app folder.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
FYI @JohnVersus Added nextjs 13 example with |
Beta Was this translation helpful? Give feedback.
-
Awesome!! Thanks🙌. Tested it just now. It is working great. 🏆 |
Beta Was this translation helpful? Give feedback.
FYI @JohnVersus Added nextjs 13 example with
app
folder https://github.com/jellydn/next-swagger-doc/tree/main/examples/next13-example