[Vuejs]-404 not found when run Vue app on node server with IIS

0👍

This issue was resolved by adding the following to the vue.config.js file –

publicPath: process.env.NODE_ENV === 'production' ? '/BusinessObjectsMetadata/' : '/'

Note – after adding this code, it was no longer possible to access localhost:3001 on the server directly by typing that in the address bar.

Leave a comment