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

Feat/nextjs app router integration #124

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

meet-bhimani
Copy link

@meet-bhimani meet-bhimani commented Oct 30, 2024

  • This pull request integrates support for the Next.js app router (Next.js 14) into the project, significantly improving compatibility and functionality.

  • For a comprehensive overview of the changes, including detailed integration steps and code snippets, please refer to the NEXTJS_APP_ROUTER_INTEGRATION.md file or check here

feel free to contact me for any discussions

@LiveDuo
Copy link
Owner

LiveDuo commented Oct 30, 2024

@meet-bhimani Thanks for the PR!

I'd have to preface by saying it's going to be quite a lot of changes to get this PR merge.

Before reviewing, the dev/nextjs-app-router folder has to be deleted and changes have to be applied to dev/next-app-project. The functions in the api folder should be merge into the lib/server folder that the rest of the API code lives. This is necessary to move the PR forward.

More comments for now:

  • type any should be replaced with the appropriate types
  • try / catch blocks should be removed as they create silent errors. this repo follows the Let it crash philosophy from erlang for the various reasons described in the blog post
  • almost all comments are better removed, hard to better explain than this CodeAesthetic video

@meet-bhimani
Copy link
Author

meet-bhimani commented Oct 31, 2024 via email

@LiveDuo
Copy link
Owner

LiveDuo commented Oct 31, 2024

@meet-bhimani That's fine, there's no rush.

There's the npm publish command that publishes to npm (it builds the project automatically using the prepublishOnly script). That been said, since the structure of the API folder is changed things might not work as expected.

@meet-bhimani
Copy link
Author

meet-bhimani commented Oct 31, 2024 via email

@LiveDuo
Copy link
Owner

LiveDuo commented Oct 31, 2024

I don't think it's a good idea to publish the package for you for multiple reasons. The publish command is not that hard either to publish it yourself.

@meet-bhimani
Copy link
Author

meet-bhimani commented Nov 1, 2024 via email

@LiveDuo
Copy link
Owner

LiveDuo commented Nov 1, 2024

You can the all folders that needs to be published in npm https://www.npmjs.com/package/destack?activeTab=code.

@meet-bhimani
Copy link
Author

meet-bhimani commented Nov 4, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants