Fix Docker build by inlining WebSocket hook and copying full source
deploy to danak / build_and_deploy (push) Has been cancelled
deploy to danak / build_and_deploy (push) Has been cancelled
This commit is contained in:
+7
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user