[Vuejs]-Npm run build on Vue project populates base_url as undefined

1👍

So, it turns out that my environment variables weren’t set, which was why it was coming up as undefined. I just set my public path to ‘/’ instead.

vue.config.js:

module.exports = {
  "transpileDependencies": [
    "vuetify"
  ],
  devServer: {
        proxy: 'https://myprojectname.com/',
    },
  publicPath: '/'
}
👤Emma

Leave a comment