We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c13425 commit 47f21daCopy full SHA for 47f21da
index.js
@@ -20,7 +20,11 @@ const DEFAULT_LIVE_UPDATE_PORT = 8088;
20
21
function startStaticPropsWatcher({ port }) {
22
console.log(`[data-listener] create socket.io on port ${port} with namespace '/nextjs-live-updates'`);
23
- const io = socketIO(port);
+ const io = socketIO(port, {
24
+ cors: {
25
+ origin: true
26
+ }
27
+ });
28
const liveUpdatesIO = io.of('/nextjs-live-updates');
29
liveUpdatesIO.on('connection', (socket) => {
30
socket.on('disconnect', () => {
0 commit comments