Create and Deploy React Production Build to Remote Server

preview_player
Показать описание
To build your source type

npm run build

Copy the contents of the build folder to your server.

If you copy to the root folder of your website, then the absolute paths will load the JS, CSS, and images.

Add property

"homepage": "/your/sub/folder"

Be sure to prefix the path with "/".

To server your build folder locally type

server -s build

Video Editor: Adobe Premier Pro
Microphone: HyperX QuadCast
Boom Arm: Blue Compass
Screen Recording: OBS Studio
Рекомендации по теме
Комментарии
Автор

lot of content creaters have videos about deployment of react or node.js apps and they are using aws, heroku, vercel etc. we want to see remote server config we want to see how to deploy apps in own server. thank you sir. its a good content.

huzeyfetas
join shbcf.ru