Thank you so much for creating these amazing produ...
# seed
m
Thank you so much for creating these amazing products! Recently I just ran into a problem with deploying a Next.js site with seed. I followed this instruction to init a next.js site in the
frontend
folder, and this instruction to add the before_build hook. However, the seed complains that it cannot find the
frontend
folder. And this is what I got when I run
ls
as the before_build hook, there is no frontend folder there… Could someone pls help me with this?
BTW, my root package.json only have backend as the workspaces, re:
Copy code
"workspaces": [
    "backend"
  ]
Do you think that might cause the problem? 🤔
I just manually added frontend to the workspaces and this time seed will include the
frontend
folder to the
/tmp/seed/source
Is this the only solution for seed to deploy static site? I’m asking this because this will break the default next.js, like it complains that there might be a mixed version of React. Re:
Copy code
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
f
Hey @Max Liu, if you followed this step in the example, you should have a frontend folder with Next.js in it. You shouldn’t need to manually create it.