I added @cf-wasm/proton and tried running the example api route to resize an image using photon (A high-performance image processing library written in rust).
While it works in the next js environment and on next-on-pages, it does not work in opennext-cloudflare's workerd environment
[!CAUTION]
Middleware is not supported in minimal mode. Please remove the NEXT_MINIMAL environment variable
> bug-cf-wasm-proton@0.1.0 dev
> next dev
▲ Next.js 14.2.5
- Local: http://localhost:3000
✓ Starting...
✓ Ready in 1663ms
✓ Compiled /api/image in 141ms (137 modules)
GET /api/image 200 in 236m
I added @cf-wasm/proton and tried running the example api route to resize an image using photon (A high-performance image processing library written in rust).
While it works in the next js environment and on next-on-pages, it does not work in opennext-cloudflare's workerd environment
Here are minimal reproducible example for OpenNext and next-on-pages
next dev
Logs:
workerd
To run in workerd
Example repos to recreate this issue: