other-emerald
other-emerald5mo ago

CLI add resource for nextjs template issue?

I created a project today using the latest refine-nextjs template and the following choices: data-provider-custom-json-rest antd auth-provider-google yarn I wanted to add a resource so I can the CLI npm run refine add resource and my files were put in src/components/members however the example resources are in a much different structure e.g. categories/create/page.tsx etc. Is there a way to get the add resource to use the same format?
2 Replies
kapa.ai
kapa.ai5mo ago
Hi @Pops. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information provided in the extracts, there isn't a direct mention of how to customize the directory structure for the add resource command specifically for a Next.js template within the refine CLI. The CLI documentation and usage examples provided do not cover the customization of the output directory or structure for added resources, especially in the context of a Next.js project setup. The add resource command, as described in the extracts, is designed to simplify the process of adding new resources by handling the boilerplate code. However, the customization of the directory structure where these resources are placed isn't explicitly covered in the provided extracts. For a more tailored solution or workaround, I recommend consulting the official refine documentation or reaching out to the refine community for support. The refine community on platforms like Discord or GitHub might offer insights or unofficial methods to achieve the desired directory structure for your Next.js project. For further exploration and possibly finding more detailed instructions or updates on this matter, you can visit the refine documentation and community resources: - refine CLI documentation: CLI Commands (https://refine.dev/docs/packages/cli#add) - refine GitHub Issues for community support and feature requests: GitHub Issues (https://github.com/refinedev/refine/issues) If this feature is crucial for your project, considering contributing to the refine project or requesting this feature through their GitHub Issues might also be beneficial. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5mo ago
<@184452259327770625> kapa.ai is still learning and improving, please let us know how it did by reacting below