Skip to content

Please help to deploy nextjs project alongside another project (library) in same repo #7698

Locked Answered by zoultrex
zoultrex asked this question in Help
Discussion options

You must be logged in to vote

After some tests and some research I found two things

  1. I since the nextjs project is on the root of my repo (obviously alongside with its package.json) I tested copying all the node modules dependencies from the other project, into the package.json for the nextjs project and it worked.
    So apparently for this to work all the modules must be installed in this specific way.
    I'll use this workaround for now, although obviously not ideal

  2. decided to look for some kind of library that will help me handle this task
    Quite a few people have recommended turborepo and thats the one I'll give a shot first, but wont update here since it will be out of scope

Now I gotta say I'm a bit disappointed w…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zoultrex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant