DEV Community

Cover image for How To Setup NextJS Application on Plesk Hosting Control Panel (Linux)

How To Setup NextJS Application on Plesk Hosting Control Panel (Linux)

Rahul on December 23, 2021

Hello guys, This is my first post in the internet world. 😬 A little more about me (you can just skip it 😅) I started learning about web develop...
Collapse
 
mytchallb profile image
Mytchall Bransgrove

Handy article! I also have written about deploying a Next.js app to Plesk since there are a few steps to jump through:
mytchall.dev/setting-up-a-next-js-...

Collapse
 
craftogrammer profile image
Rahul

nice, thanks

Collapse
 
johannesjo profile image
Johannes Millan • Edited

Great article! I wonder however: Didn't you need to also configure a reverse proxy?

Collapse
 
mel_hautantik_9c38ca5a1e2 profile image
Mel Hautantik

moi j'ai tout tenté mais je n'y arrive toujours pas
je ne retrouve pas cette ligne const defaultCommand = "dev"

Collapse
 
emeagenciadigital profile image
EMEDIGITAL

getting 504 time out

Collapse
 
gregouzdev profile image
Gregou'Z Dev

if use dotEnv, with NODE_ENV="production"

Collapse
 
craftogrammer profile image
Rahul

This didn't worked for me that time, is this working now?

Collapse
 
hamza_ayech_5ad71d72d9b36 profile image
Hamza Ayech

I'm getting 504 with the same configuration! Any suggesstion?

Collapse
 
craftogrammer profile image
Rahul

Got it fixed or still have it?

Check the next start command carefully, and the restart nodejs.

Collapse
 
api_need_572ae9e80288b07e profile image
Api Need

I'm done with setup, But getting error from Nginx. .next/static is forbidden