Install create-react-app in a sub-domain

0

I'm doing a project on React using the create react app command. I have my server with NodeJS and I want to install the project in the main domain like www.dominio.com (that's what I do). But I also want to install a test version on test.domonio.com. It is possible to install it in the sub-domain and how could I do it ?. Thank you.

    
asked by albertcito 29.04.2018 в 13:45
source

1 answer

1

You can place the contents of the /build folder - after running npm run build -, in the path you assign to the server or hosting the subdomain, in a similar way to the one you have deployed in the main domain . Salu2!

    
answered by 07.05.2018 в 23:08