Guest User

Bundling of edge function failed.

a guest
Sep 26th, 2025
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | Software | 0 0
  1. 11:53:47 PM: Edge Functions bundling
  2. 11:53:47 PM: ────────────────────────────────────────────────────────────────
  3. 11:53:47 PM: ​
  4. 11:53:47 PM: Packaging Edge Functions from .netlify/edge-functions directory:
  5. 11:53:47 PM: - ___netlify-edge-handler-src-middleware
  6. 11:53:56 PM: PrismaClientValidationError: PrismaClient failed to initialize because it wasn't configured to run in this environment (Netlify Edge Functions).
  7. In order to run Prisma Client in an edge runtime, you will need to configure one of the following options:
  8. 11:53:56 PM: - Enable Driver Adapters: https://pris.ly/d/driver-adapters
  9. 11:53:56 PM: - Enable Accelerate: https://pris.ly/d/accelerate
  10. 11:53:56 PM: at file:///opt/build/repo/.netlify/edge-functions/___netlify-edge-handler-src-middleware/server/src/middleware.js:501:1464
  11. 11:53:56 PM: at new b (file:///opt/build/repo/.netlify/edge-functions/___netlify-edge-handler-src-middleware/server/src/middleware.js:502:37)
  12. 11:53:56 PM: at Object.705 (file:///opt/build/repo/.netlify/edge-functions/___netlify-edge-handler-src-middleware/server/src/middleware.js:473:87450)
  13. 11:53:56 PM: at c (file:///opt/build/repo/.netlify/edge-functions/___netlify-edge-handler-src-middleware/server/src/middleware.js:53:142)
  14. 11:53:56 PM: at file:///opt/build/repo/.netlify/edge-functions/___netlify-edge-handler-src-middleware/server/src/middleware.js:503:25290
  15. 11:53:56 PM: at b (file:///opt/build/repo/.netlify/edge-functions/___netlify-edge-handler-src-middleware/server/src/middleware.js:53:1761)
  16. 11:53:56 PM: at file:///opt/build/repo/.netlify/edge-functions/___netlify-edge-handler-src-middleware/server/src/middleware.js:57:51 {
  17. 11:53:56 PM: name: "PrismaClientValidationError",
  18. 11:53:56 PM: clientVersion: "6.16.2"
  19. 11:53:56 PM: }
  20. 11:53:56 PM: ​
  21. 11:53:56 PM: Bundling of edge function failed
  22. 11:53:56 PM: ────────────────────────────────────────────────────────────────
  23. 11:53:56 PM: ​
  24. 11:53:56 PM: Error message
  25. 11:53:56 PM: Could not load edge function at '/opt/build/repo/.netlify/edge-functions/___netlify-edge-handler-src-middleware/___netlify-edge-handler-src-middleware.js'. More on the Edge Functions API at https://ntl.fyi/edge-api.
  26. 11:53:56 PM: ​
  27. 11:53:56 PM: Error location
  28. 11:53:56 PM: While bundling edge function
  29. 11:53:56 PM: ​
  30. 11:53:56 PM: Resolved config
  31. 11:53:56 PM: build:
  32. 11:53:56 PM: command: npx prisma generate && npm run build
  33. 11:53:56 PM: commandOrigin: ui
  34. 11:53:56 PM: environment:
  35. 11:53:56 PM: - AUTH_SECRET
  36. 11:53:56 PM: - AUTH_URL
  37. 11:53:56 PM: - DATABASE_URL
  38. 11:53:56 PM: - GOOGLE_CLIENT_ID
  39. 11:53:56 PM: - GOOGLE_CLIENT_SECRET
  40. 11:53:56 PM: - NETLIFY_DATABASE_URL
  41. 11:53:56 PM: - NETLIFY_DATABASE_URL_UNPOOLED
  42. 11:53:56 PM: - NEXTAUTH_SECRET
  43. 11:53:56 PM: - NEXTAUTH_URL
  44. 11:53:56 PM: - NEXT_PUBLIC_GITHUB_TOKEN
  45. 11:53:56 PM: publish: /opt/build/repo/.next
  46. 11:53:56 PM: publishOrigin: ui
  47. 11:53:56 PM: headers:
  48. 11:53:56 PM: - for: /_next/static/*
  49. values:
  50. Cache-Control: public, max-age=31536000, immutable
  51. headersOrigin: inline
  52. plugins:
  53. - inputs: {}
  54. origin: ui
  55. package: "@netlify/plugin-nextjs"
  56. redirects:
  57. - from: /_next/image
  58. query:
  59. q: :quality
  60. url: :url
  61. w: :width
  62. status: 200
  63. to: /.netlify/images?url=:url&w=:width&q=:quality
  64. - from: /_ipx/*
  65. query:
  66. q: :quality
  67. url: :url
  68. w: :width
  69. status: 200
  70. to: /.netlify/images?url=:url&w=:width&q=:quality
  71. redirectsOrigin: inline
  72. 11:53:56 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
  73. 11:53:57 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
  74. 11:53:57 PM: Failing build: Failed to build site
Tags: Build Error
Advertisement
Add Comment
Please, Sign In to add comment