Skip to content
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

Fix server actions stability #2728

Merged
merged 4 commits into from
Jan 13, 2025
Merged

Fix server actions stability #2728

merged 4 commits into from
Jan 13, 2025

Conversation

gregberge
Copy link
Contributor

@gregberge gregberge commented Jan 13, 2025

Add NEXT_SERVER_ACTIONS_ENCRYPTION_KEY to ensure server-actions are
stable across deployments.

Without that, when we deploy server-actions can randomly failed because
we have cache on HTML/JS bundles.

Related: vercel/next.js#73951, https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#overwriting-encryption-keys-advanced

@emmerich you have to add a new secret NEXT_SERVER_ACTIONS_ENCRYPTION_KEY filled with a random value.

Add `NEXT_SERVER_ACTIONS_ENCRYPTION_KEY` to ensure server-actions are
stable across deployments.

Without that, when we deploy server-actions can randomly failed because
we have cache on HTML/JS bundles.

Related: vercel/next.js#73951, https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#overwriting-encryption-keys-advanced
Copy link

changeset-bot bot commented Jan 13, 2025

🦋 Changeset detected

Latest commit: ba703fb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

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

Copy link
Contributor

github-actions bot commented Jan 13, 2025

GitBook Preview
Latest commit: https://536d8abd.gitbook-open.pages.dev
PR: https://pr2728.gitbook-open.pages.dev

Copy link

argos-ci bot commented Jan 13, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Changes approved 46 changed Jan 13, 2025, 9:47 AM

Copy link
Contributor

@emmerich emmerich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the key needed to be a specific format: vercel/next.js#61020

@emmerich emmerich merged commit 528a053 into main Jan 13, 2025
9 checks passed
@emmerich emmerich deleted the fix-server-actions branch January 13, 2025 10:04
clairechabas added a commit that referenced this pull request Jan 13, 2025
* main:
  Fix server actions stability (#2728)
  temporarily add back cloudflare KV cache backend (#2726)
  Fix padding of ads box (#2724)
  Try to fix error on og image generation (#2722)
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

Successfully merging this pull request may close these issues.

2 participants