Nob
Nob
CDCloudflare Developers
Created by Nob on 9/23/2024 in #pages-help
Postgres.js not working in next.js
⨯ Error: The edge runtime does not support Node.js 'perf_hooks' module.
Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime
at Object.get (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_next_dist_esm_server_web_969587._.js:59:19)
at createSocket (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:808:228)
at Timeout.connect [as _onTimeout] (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:962:35)
at cachedError (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:151:25)
at new Query (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:39:79)
at sql (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:1833:67)
at test (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\[root of the server]__a2200c._.js:2333:171)
⨯ Error: The edge runtime does not support Node.js 'perf_hooks' module.
Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime
at Object.get (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_next_dist_esm_server_web_969587._.js:59:19)
at createSocket (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:808:228)
at Timeout.connect [as _onTimeout] (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:962:35)
at cachedError (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:151:25)
at new Query (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:39:79)
at sql (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\node_modules_postgres_src_b4bde1._.js:1833:67)
at test (D:\survivalytics\my-next-app\.next\server\edge\chunks\ssr\[root of the server]__a2200c._.js:2333:171)
wrangler.toml
compatibility_date = "2024-09-22"

compatibility_flags = ["nodejs_compat_v2"]
compatibility_date = "2024-09-22"

compatibility_flags = ["nodejs_compat_v2"]
5 replies
CDCloudflare Developers
Created by Nob on 6/22/2024 in #pages-help
Germany latency issue
My friend from Germany have huge latency to my next-on-pages project (+30s) while for me in France I have about 100ms, is there a problem in Germany atm? If he uses a vpn in germany/france/everywhere else it works well, he is from Wetzlar. All other websites works fine for him.
3 replies