Fix Docker build by inlining WebSocket hook and copying full source
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-26 16:19:02 +03:30
parent aa73b02b9c
commit 0cbf3e3dc5
3 changed files with 11 additions and 4 deletions
+7 -1
View File
@@ -2,6 +2,7 @@ const webpack = require("webpack");
// const serverPort = 9964 || process.env.PORT
const serverPort = 8959 || process.env.PORT;
const fs = require("fs");
const wss = require("./server/socket/init");
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
@@ -60,9 +61,14 @@ export default {
"@nuxtjs/axios",
"@nuxtjs/auth-next",
"@nuxtjs/firebase",
"~/modules/WebSocketServer.js",
],
hooks: {
listen(server) {
wss(server);
},
},
firebase: {
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
config: {