const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 8080,
    proxy: {
      '/user': {
        target: 'http://localhost:8081',
        changeOrigin: true,
        pathRewrite: {
          '^/user': '/user'
        }
      },
       '/post': {
         target: 'http://localhost:8081',
         changeOrigin: true
       },
       '/comment': {
         target: 'http://localhost:8081',
         changeOrigin: true
       },
    }
  }
})
