1:45:46.485 | ▲ Attention: Next.js now collects completely anonymous telemetry regarding usage.
21:45:46.485 | ▲ This information is used to shape Next.js' roadmap and prioritize features.
21:45:46.485 | ▲ You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
21:45:46.486 | ▲ https://nextjs.org/telemetry
21:45:46.620 | ▲ ▲ Next.js 14.1.0
21:45:46.621 | ▲
21:45:46.690 | ▲ Creating an optimized production build ...
21:45:59.698 | ▲ Failed to compile.
21:45:59.698 | ▲ ./node_modules/cpu-features/build/Release/cpufeatures.node
21:45:59.699 | ▲ Module parse failed: Unexpected character '�' (1:0)
21:45:59.699 | ▲ You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
21:45:59.699 | ▲ (Source code omitted for this binary file)
21:45:59.699 | ▲
21:45:59.699 | ▲ Import trace for requested module:
21:45:59.699 | ▲ ./node_modules/cpu-features/build/Release/cpufeatures.node
21:45:59.700 | ▲ ./node_modules/cpu-features/lib/index.js
21:45:59.700 | ▲ ./node_modules/ssh2/lib/protocol/constants.js
21:45:59.700 | ▲ ./node_modules/ssh2/lib/server.js
21:45:59.700 | ▲ ./node_modules/ssh2/lib/index.js
21:45:59.700 | ▲ ./src/app/api/turnon/route.ts
21:45:59.701 | ▲ ./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2Fapi%2Fturnon%2Froute&page=%2Fapi%2Fturnon%2Froute&pagePath=private-next-app-dir%2Fapi%2Fturnon%2Froute.ts&appDir=%2Fopt%2Fbuildhome%2Frepo%2Fsrc%2Fapp&appPaths=%2Fapi%2Fturnon%2Froute&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!./src/app/api/turnon/route.ts?__next_edge_ssr_entry__
21:45:59.701 | ▲
21:45:59.701 | ▲ ./node_modules/ssh2/lib/agent.js:6:21
21:45:59.701 | ▲ Module not found: Can't resolve 'fs'
21:45:59.701 | ▲
21:45:59.701 | ▲ https://nextjs.org/docs/messages/module-not-found
21:45:59.702 | ▲
21:45:59.702 | ▲ Import trace for requested module:
21:45:59.702 | ▲ ./node_modules/ssh2/lib/index.js
21:45:59.702 | ▲ ./src/app/api/turnon/route.ts
21:45:59.702 | ▲ ./node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js?absolutePagePath=private-next-app-dir%2Fapi%2Fturnon%2Froute.ts&page=%2Fapi%2Fturnon%2Froute&appDirLoader=bmV4dC1hcHAtbG9hZGVyP25hbWU9YXBwJTJGYXBpJTJGdHVybm9uJTJGcm91dGUmcGFnZT0lMkZhcGklMkZ0dXJub24lMkZyb3V0ZSZwYWdlUGF0aD1wcml2YXRlLW5leHQtYXBwLWRpciUyRmFwaSUyRnR1cm5vbiUyRnJvdXRlLnRzJmFwcERpcj0lMkZvcHQlMkZidWlsZGhvbWUlMkZyZXBvJTJGc3JjJTJGYXBwJmFwcFBhdGhzPSUyRmFwaSUyRnR1cm5vbiUyRnJvdXRlJnBhZ2VFeHRlbnNpb25zPXRzeCZwYWdlRXh0ZW5zaW9ucz10cyZwYWdlRXh0ZW5zaW9ucz1qc3gmcGFnZUV4dGVuc2lvbnM9anMmYmFzZVBhdGg9JmFzc2V0UHJlZml4PSZuZXh0Q29uZmlnT3V0cHV0PSZwcmVmZXJyZWRSZWdpb249Jm1pZGRsZXdhcmVDb25maWc9ZTMwJTNEIQ%3D%3D&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!
21:45:59.703 | ▲
21:45:59.703 | ▲ ./node_modules/ssh2/lib/agent.js:7:28
21:45:59.703 | ▲ Module not found: Can't resolve 'child_process'
21:45:59.703 | ▲
21:45:59.703 | ▲ https://nextjs.org/docs/messages/module-not-found
21:45:59.703 | ▲
21:45:59.703 | ▲ Import trace for requested module:
21:45:59.704 | ▲ ./node_modules/ssh2/lib/index.js
21:45:59.704 | ▲ ./src/app/api/turnon/route.ts
21:45:59.704 | ▲ ./node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js?absolutePagePath=private-next-app-dir%2Fapi%2Fturnon%2Froute.ts&page=%2Fapi%2Fturnon%2Froute&appDirLoader=bmV4dC1hcHAtbG9hZGVyP25hbWU9YXBwJTJGYXBpJTJGdHVybm9uJTJGcm91dGUmcGFnZT0lMkZhcGklMkZ0dXJub24lMkZyb3V0ZSZwYWdlUGF0aD1wcml2YXRlLW5leHQtYXBwLWRpciUyRmFwaSUyRnR1cm5vbiUyRnJvdXRlLnRzJmFwcERpcj0lMkZvcHQlMkZidWlsZGhvbWUlMkZyZXBvJTJGc3JjJTJGYXBwJmFwcFBhdGhzPSUyRmFwaSUyRnR1cm5vbiUyRnJvdXRlJnBhZ2VFeHRlbnNpb25zPXRzeCZwYWdlRXh0ZW5zaW9ucz10cyZwYWdlRXh0ZW5zaW9ucz1qc3gmcGFnZUV4dGVuc2lvbnM9anMmYmFzZVBhdGg9JmFzc2V0UHJlZml4PSZuZXh0Q29uZmlnT3V0cHV0PSZwcmVmZXJyZWRSZWdpb249Jm1pZGRsZXdhcmVDb25maWc9ZTMwJTNEIQ%3D%3D&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!
21:45:59.704 | ▲
21:45:59.704 | ▲ ./node_modules/ssh2/lib/client.js:11:4
21:45:59.704 | ▲ Module not found: Can't resolve 'crypto'
21:45:59.705 | ▲
21:45:59.705 | ▲ https://nextjs.org/docs/messages/module-not-found
21:45:59.705 | ▲
21:45:59.705 | ▲ Import trace for requested module:
21:45:59.705 | ▲ ./node_modules/ssh2/lib/index.js
21:45:59.705 | ▲ ./src/app/api/turnon/route.ts
21:45:59.706 | ▲ ./node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js?absolutePagePath=private-next-app-dir%2Fapi%2Fturnon%2Froute.ts&page=%2Fapi%2Fturnon%2Froute&appDirLoader=bmV4dC1hcHAtbG9hZGVyP25hbWU9YXBwJTJGYXBpJTJGdHVybm9uJTJGcm91dGUmcGFnZT0lMkZhcGklMkZ0dXJub24lMkZyb3V0ZSZwYWdlUGF0aD1wcml2YXRlLW5leHQtYXBwLWRpciUyRmFwaSUyRnR1cm5vbiUyRnJvdXRlLnRzJmFwcERpcj0lMkZvcHQlMkZidWlsZGhvbWUlMkZyZXBvJTJGc3JjJTJGYXBwJmFwcFBhdGhzPSUyRmFwaSUyRnR1cm5vbiUyRnJvdXRlJnBhZ2VFeHRlbnNpb25zPXRzeCZwYWdlRXh0ZW5zaW9ucz10cyZwYWdlRXh0ZW5zaW9ucz1qc3gmcGFnZUV4dGVuc2lvbnM9anMmYmFzZVBhdGg9JmFzc2V0UHJlZml4PSZuZXh0Q29uZmlnT3V0cHV0PSZwcmVmZXJyZWRSZWdpb249Jm1pZGRsZXdhcmVDb25maWc9ZTMwJTNEIQ%3D%3D&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!
21:45:59.706 | ▲
21:45:59.706 | ▲ ./node_modules/ssh2/lib/client.js:13:30
21:45:59.706 | ▲ Module not found: Can't resolve 'dns'
21:45:59.706 | ▲
<br class="Apple-interchange-newline" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
Im getting theses errors when trying to run SSH2 in Cloudflare, is it possible to get SSH2 working in Cloudflare?
https://developers.cloudflare.com/workers/runtime-apis/