Hosting a Vue.js SPA (single page application) within a Azure Web Apps instance? Specifically, the Windows version (not the Linux container version)? Let me show you how to configure the web.config.
A web.config is required to host the content. It’s for two reasons:
- It tells IIS how to handle routing of URLs. The
vue-routerdocumentation has information
- Your project may, like mine, may have different file types i.e. woff and woff2 font files. The web.config can mark as known MIME types. These are lines 4 to 7 in the web.config below
Below is the web.config with everyone you need to fix both cases.