weird nextjs error when building in railway
coding-dynasty
HOBBYOP

2 months ago

my nextjs build succeeds locally, but building on railway gives me a weird error, i am using a monorepo, and am new to this kind of projects, can anyone help me with it?

4 Replies

coding-dynasty
HOBBYOP

2 months ago

i think the issue is running db migrations as pre deploy.


coding-dynasty
HOBBYOP

2 months ago

i hope i can find anyone to guide me to fix the issue


medim
MODERATOR

2 months ago

Doesn't seems like it? I'm no NextJs expert but did you try checking that 'useContext' function mentioned in the error?


coding-dynasty
HOBBYOP

2 months ago

i even deleted the files that might cause an issue, but the build still succeeds locally while failing on railway


Loading...