Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Superplate doesnt create a best practice refine nextjs project #263

Open
smparekh opened this issue Apr 8, 2022 · 0 comments
Open

Superplate doesnt create a best practice refine nextjs project #263

smparekh opened this issue Apr 8, 2022 · 0 comments
Assignees

Comments

@smparekh
Copy link

smparekh commented Apr 8, 2022

Issue:
Project is split between src/ and pages/ (see: https://github.com/pankod/refine/tree/master/examples/refine-next) which works well when doing local development with yarn dev doing a production build of the app via yarn build leads to an incomplete build with next ignoring all pages under src/pages (see: Caveats https://nextjs.org/docs/advanced-features/src-directory).

Workaround:
Currently including the src directory in the deployment bundle does the trick but leads to an unoptimized deployment

Fix:
Superplate should create a refine-nextjs app that works with yarn dev and with yarn build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants