xenial-black
xenial-black7mo ago

Hi guys, two questions:

Hi guys, two questions: - when will the tutorial with next.js be released? - If I use nextJs, why refine CLI add resource don't create the CRUD structure into app/ folder with nextJs syntax (example app/resource/page.tsx, app/resource/[id]/page.tsx etc..) ? thx
4 Replies
typical-coral
typical-coral7mo ago
Hello @Silvio, when you Do you want to add example pages?
✔ Downloaded remote source successfully.
✔ Choose a project template · refine-nextjs
✔ What would you like to name your project?: · refine-nextjs
✔ Choose your backend service to connect: · data-provider-custom-json-rest
✔ Do you want to use a UI Framework?: · antd
✔ Do you want to add example pages?: · antd-example
✔ Do you need any Authentication logic?: · auth-provider-custom
✔ Choose a package manager: · npm
✔ Downloaded remote source successfully.
✔ Choose a project template · refine-nextjs
✔ What would you like to name your project?: · refine-nextjs
✔ Choose your backend service to connect: · data-provider-custom-json-rest
✔ Do you want to use a UI Framework?: · antd
✔ Do you want to add example pages?: · antd-example
✔ Do you need any Authentication logic?: · auth-provider-custom
✔ Choose a package manager: · npm
Do you want to add example pages? when you say yes to this question, the project should be created as follows:
No description
typical-coral
typical-coral7mo ago
Which options did you choose and what was the project that came out?
unwilling-turquoise
unwilling-turquoise7mo ago
Thx @Alican Erdurmaz, my question is about to npm run refine add resource command. When I use it in a refine with nextJs project, the new resources will create in a /components folder instead in app router logic. It would be useful if the command created resources in App folder!
typical-coral
typical-coral7mo ago
oh. thanks! we need to fix this. do you want to open github issue? it's easier to track on github. About tutorial, I can't give exact time but I will discuss this with core team to speed up process