Considerations for building our application for deployment
Once we have our domain/subdomain, we need to decide (or know) on which path the application will be located. The path is what follows the domain, in segments separated by a forward slash (/
) – for example, mydomain.com/store/product.html
. These sections are called “paths” because they follow the same directory structure as mirrored in the local storage. Our application will be served through a web server. These amazing pieces of software are built around the concept of serving files following the directory structure (folder/subfolder/file...
). Internally, our server will match a domain request to the files in a local directory. Here is where we need to know whether the Vue application will be placed at the root, or on a path (directory), as we need to indicate this for the build process if we are using Vue Router in the web history mode (review Chapter 5, Single-Page Applications, if you need a refresher...