Answers for "vue js access heroku port"

0

vue js access heroku port

// vue.config.js
const webpack = require('webpack');
module.exports = {
  configureWebpack: {
    plugins: [
      new webpack.DefinePlugin({
        'process.env': {
          'PORT': JSON.stringify(process.env.PORT)
        }
      })
    ]
  }
}

// You can now access process.env.PORT anywhere in your vue application
Posted by: Guest on August-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language