()
| 1016 | } |
| 1017 | |
| 1018 | function isMainModule() { |
| 1019 | const currentFile = fileURLToPath(import.meta.url) |
| 1020 | const entry = process.argv[1] ? path.resolve(process.argv[1]) : '' |
| 1021 | return currentFile === entry |
| 1022 | } |
| 1023 | |
| 1024 | if (isMainModule()) { |
| 1025 | startGatewayServer() |