Skip to content

Commit

Permalink
host localhost:8080
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 15, 2024
1 parent 718261a commit aab48ee
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,16 @@ module.exports = {
directory: path.join(__dirname, 'public'),
publicPath: '/'
},
proxy: [{
context: ['/api'],
target: 'http://127.0.0.1:8080',
//target: 'http://37.139.40.252',
pathRewrite: { '^/api': '' },
changeOrigin: true
}],
// Удаляем секцию proxy полностью
compress: true,
port: 80,
host: '0.0.0.0',
port: 8000, // Меняем порт на 8000
host: 'localhost', // Меняем на localhost
allowedHosts: 'all',
historyApiFallback: {
index: '/index.html'
},
hot: true,
},
},
plugins: [
new webpack.ProvidePlugin({
Handlebars: 'handlebars'
Expand Down

0 comments on commit aab48ee

Please sign in to comment.