-
Notifications
You must be signed in to change notification settings - Fork 762
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
feat: add experimental Next.js, with Workers assets, template #6830
Conversation
🦋 Changeset detectedLatest commit: 0a52d29 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
c554a28
to
5943351
Compare
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11053171152/npm-package-wrangler-6830 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/6830/npm-package-wrangler-6830 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11053171152/npm-package-wrangler-6830 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11053171152/npm-package-create-cloudflare-6830 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11053171152/npm-package-cloudflare-kv-asset-handler-6830 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11053171152/npm-package-miniflare-6830 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11053171152/npm-package-cloudflare-pages-shared-6830 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11053171152/npm-package-cloudflare-vitest-pool-workers-6830 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11053171152/npm-package-cloudflare-workers-editor-shared-6830 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/11053171152/npm-package-cloudflare-workers-shared-6830 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but we need a feature freeze exemption because technically this is a feature.
It's however an experimental feature with minimal blast radius, so I think this change is very safe to merge, and the reward for doing so is huge (single command to scaffold and deploy next.js apps with opennext adapter to cloudflare").
Asking for the exemption now. Please don't release this change until the exemption is granted.
PS: there is an e2e test failure, it's unclear if it's real or a flake, please take a look.
PS2: could you add a minimal e2e test for this template please? thank you
main = ".worker-next/index.mjs" | ||
|
||
compatibility_date = "2024-08-29" | ||
compatibility_flags = ["nodejs_compat_v2"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with #6821 fixed, could we now drop the _v2
suffix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defo!
This feature was now granted an exception from the feature freeze due to high value and low risk, see CR-1000121. |
I'll try but so far I have not added e2e tests for any of the experimental templates because I wasn't sure how much I would need to change the machinery. |
This template uses the new `@opennextjs/cloudflare` adaptor.
e050695
to
b6d8ee4
Compare
b6d8ee4
to
2bc3b78
Compare
Not only is this unnecessary, the cached does not even get used by the e2e step that follows (probably because the env vars change) so it adds extra time to these jobs.
Thanks for adding the test, @petebacondarwin. Excellent work! |
What this PR solves / how to test
This template uses the new
@opennextjs/cloudflare
adaptor.Fixes #000
Author has addressed the following