Deploying a Vue application works by using our native static environment. Our static environment comes with Node, Yarn and Nginx by default. You can simply build your Vue.js 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.
Simply create a file called nodion.yml in the root directory of your repository.
nodion:
env: static
build_command: yarn && yarn build
publish_dir: /dist