how to deploy nextjs 14 on plesk?
Unanswered
Spectacled bear posted this in #help-forum
Spectacled bearOP
I'm trying to build my project on plesk and it keeps failing
For some context, running the build command locally on the machine i also developed the site, it builds just fine, quite fast
In plesk, when i run npm run build, i was getting a bunch of timeout errors
I changed the next config to include
after this, the command runs for a couple minutes and then i get the following error: Request failed with status code 504
There is no other info on the error, no error stack, nothing
I have no clue on how to tackle this error, anyone that can help with some troubleshooting steps? I'd really appreciate it ❤️
For some context, running the build command locally on the machine i also developed the site, it builds just fine, quite fast
In plesk, when i run npm run build, i was getting a bunch of timeout errors
I changed the next config to include
staticPageGenerationTimeout: 2000,
experimental: {
// This is experimental but can
// be enabled to allow parallel threads
// with nextjs automatic static generation
workerThreads: false,
cpus: 4after this, the command runs for a couple minutes and then i get the following error: Request failed with status code 504
There is no other info on the error, no error stack, nothing
I have no clue on how to tackle this error, anyone that can help with some troubleshooting steps? I'd really appreciate it ❤️
3 Replies
Spectacled bearOP
I havent been able to find anything helpful online btw
the error doesnt appear in the cli but on the plesk interface
the other errors are there for before, whenever they appear i just wait a couple mins and then run the command again and they dont appear, i get the toast on top of the ss instead as an error