[๐ Bug]: Missing decleration file for fetch-handler
next-on-pages environment related information
System:
Platform: linux
Arch: x64
Version: #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024
CPU: (22) x64 Intel(R) Core(TM) Ultra 7 155H
Memory: 31 GB
Shell: /usr/bin/zsh
Package Manager Used: pnpm (9.0.6)
Relevant Packages:
@cloudflare/next-on-pages: 1.13.2
vercel: N/A
next: 14.1.4
Description
Using the custom worker entrypoint I am making my own entrypoint which involves importing the fetch-handler.
Could not find a declaration file for module '@cloudflare/next-on-pages/fetch-handler'
Reproduction
No response
Pages Deployment Method
None
Pages Deployment ID
No response
Additional Information
The package.json has this
"./fetch-handler": {
"import": "./dist/fetch-handler/index.js",
"types": "./dist/fetch-handler/index.d.ts"
},
However the built module does not include the index.d.ts file. So I assume there's a step missing in the build to include the types for this specific function.
Would you like to help?
- [ ] Would you like to help fixing this bug?
Hello ๐ Thank you for the issue and apologies for the late reply.
Earlier this year we released our Cloudflare adapter for OpenNext, and we have been continuously investing effort in its improvement since then. Existing deployments can continue to use the next-on-pages tooling, but the Cloudflare adapter for OpenNext is currently stable and recommended for deployment of Next.js applications to Cloudflare.
As such, we will no longer be maintaining next-on-pages. We recently deprecated the package on npm and we plan to archive this repo on Monday Sep 29, 2025. In preparation for archival, we are closing all open issues and PRs.
If you have concerns, please feel free to reply here before the repo is archived (after that, it will no longer be possible to comment) or to reach out to our team on Discord.
Thanks so much for using and contributing to next-on-pages ๐งก