Deploy React to Nodion

Deploying a React application works by using our native static environment. Our static environment comes with Node, Yarn and Nginx by default. You can simply build your React application with yarn and make use of the build_command. The generated output (for example /dist) can be used as publish directory. This way the webserver points to files in that directory.

Simple Nodion File for React applications

Simply create a file called nodion.yml in the root directory of your repository.

nodion:
  env: static
  build_command: yarn && yarn build
  publish_dir: /build