Open Next.js adapter for Cloudflare
MIT License
Published by workers-frameworks 13 days ago
5bceecc: example: Add vercel blog starter
Update the examples with vercel blog starter and adapt it to run on cf workers
Published by workers-frameworks 16 days ago
6acf0fd: feat: cli arg to disable minification
The cache handler currently forces minification. There is now a CLI arg to disable minification for the build. At the moment, this only applies to the cache handler but may be used for other parts of the build in the future when minification is introduced to them. By default, minification is enabled, but can be disabled by passing --noMinify
.
Published by workers-frameworks 17 days ago
66ba0ff: enhancement: Expand missing next.config error message
Found out that next dev can run the a Next.js app without next.config but
if we are using the adapter we throw an error if we don't find the config.
So expanded the error for users.
Published by workers-frameworks 17 days ago
87f4fb5: feat: configure kv binding name with env var
The Workers KV binding used in the Next.js cache handler can be given a custom name with the __OPENNEXT_KV_BINDING_NAME
environment variable at build-time, instead of defaulting to NEXT_CACHE_WORKERS_KV
.
83abcfe: refactor: retrieve cache handler kv instance inside constructor
The cache handler was retrieving it's KV instance as a static property on the class that was defined at some point during the execution of the Next.js server. This moves the retrieval of the KV instance to happen inside the constructor for the class, so that it is retrieved during instantiation instead.
Published by workers-frameworks 20 days ago