Skip to content

Commit bd658ed

Browse files
committed
chore(webpack): fix dev server redirects
1 parent 8cfe32e commit bd658ed

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Diff for: templates/app/webpack.make.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,19 @@ module.exports = function makeWebpackConfig(options) {
350350
contentBase: './client/',
351351
hot: true,
352352
proxy: {
353-
'/api': 'http://localhost:<%= devPort %>',
354-
'/auth': 'http://localhost:<%= devPort %>',
355-
'/socket.io': 'http://localhost:<%= devPort %>',
353+
'/api': {
354+
target: 'http://localhost:<%= devPort %>',
355+
secure: false,
356+
},
357+
'/auth': {
358+
target: 'http://localhost:<%= devPort %>',
359+
secure: false,
360+
},<% if(filters.ws) { %>
361+
'/primus': {
362+
target: 'http://localhost:<%= devPort %>',
363+
secure: false,
364+
ws: true,
365+
},<% } %>
356366
},
357367
stats: {
358368
modules: false,

0 commit comments

Comments
 (0)