Closed Dan-Shields closed 11 months ago
A few notes:
5173
, so that needs updating too.listening
, but I'm not sure if that has a special hook or if you just have to do something like below, which then you could maybe run generateHTMLFiles()
in there instead? Although IIRC this config will still have the wrong server.origin
address and you need to refer to server.port
instead.
configureServer(server) {
server.httpServer.once('listening', () => {
// server.config will have the correct config, kind of
}
}
config
hook chooses the protocol and socket address, then stores them in a different set of variables, which are then used for development. Is that done for any specific reason over just using the normal configuration? (Although in the above case of changing ports, it still wouldn't work and would need regenerating).Thanks for your notes on this @zoton2, should be fixed!
Easily fixed by reading port from the resolved config