DEV Community


Discussion on: How to auto deploy a Vue application using GitLab CI/CD on Ubuntu 18.04

jonathanwiemers profile image
Jonathan Wiemers

this is a nice writeup, but one little gem is missing. If that Vue application has a router and subpages. routing doesn't work.

So you have to add a custom nginx.conf with following code in the default block

location / {
    try_files $uri $uri/ /index.html =404;