8000 Cloudflare worker error with opennextjs-cloudflare · Issue #303 · tursodatabase/libsql-client-ts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cloudflare worker error with opennextjs-cloudflare #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gianpaj opened this issue Mar 18, 2025 · 1 comment
Open

Cloudflare worker error with opennextjs-cloudflare #303

gianpaj opened this issue Mar 18, 2025 · 1 comment

Comments

@gianpaj
Copy link
gianpaj commented Mar 18, 2025

Hi, I'm hoping somebody could shed light on this error I'm getting when trying to deploy a Next.js app on Cloudflare

Image
✘ [ERROR] ⨯ Error: Neon: unsupported Linux architecture:

      at currentTarget
  (.open-next/server-functions/default/handler.mjs:98994:15)
      at requireNative
  (.open-next/server-functions/default/handler.mjs:99303:20)
      at .open-next/server-functions/default/node_modules/libsql/index.js
  (.open-next/server-functions/default/handler.mjs:99338:9)
      at require_libsql
  (.open-next/server-functions/default/handler.mjs:55:49)
      at .open-next/server-functions/default/node_modules/@libsql/client/lib-esm/sqlite3.js
  (.open-next/server-functions/default/handler.mjs:99842:29)
      at init_sqlite3
  (.open-next/server-functions/default/handler.mjs:52:54)
      at .open-next/server-functions/default/node_modules/@libsql/client/lib-esm/node.js
  (.open-next/server-functions/default/handler.mjs:108213:5)
      at init_node3
  (.open-next/server-functions/default/handler.mjs:52:54)
      at null.<anonymous>
  (.open-next/server-functions/default/handler.mjs:108233:52)

[wrangler:inf] GET /api/client/xxx 500 Internal Server Error (55ms)

I also get Error: Neon: unsupported macOS architecture

Here's the repo https://github.com/Escuela-dev/tracking

npm run preview
$ npm run build:worker && wrangler dev
$ opennextjs-cloudflare

┌─────────────────────────────┐
│ OpenNext — Cloudflare build │
└─────────────────────────────┘

App directory: /Users/gianpaj/github/escuela-dev/toggl-tracking-escuela
Next.js version : 14.2.24
@opennextjs/cloudflare version: 0.5.12
@opennextjs/aws version: https://pkg.pr.new/@opennextjs/aws@7e23eee

┌─────────────────────────────────┐
│ OpenNext — Building Next.js app │
└─────────────────────────────────┘

I followed these repos as examples:

Thanks a lot!

@thiagoalbrecht
Copy link

I also ran into this problem. I am using drizzle, and I was able to fix this by using the @libsql/client/web driver module instead of @libsql/client, i.e. changing:

import { createClient } from '@libsql/client';
import { drizzle } from 'drizzle-orm/libsql';

to

import { createClient } from '@libsql/client/web';
import { drizzle } from 'drizzle-orm/libsql/web';

This fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0