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

[nextjs] Add Vercel KV support for editing cache #1530

Merged
merged 16 commits into from
Jun 28, 2023

Conversation

art-alexeyenko
Copy link
Contributor

@art-alexeyenko art-alexeyenko commented Jun 19, 2023

This PR adds a Vercel KV editing data cache implementation, to avoid editing errors when Vercel deployment is used as editing host.

Description / Motivation

Default disk-based cache used for editing conflicts with the stateless nature of Vercel workers. For a more persistent storage we add support for KV and an example of how it can be enabled in an app.

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@art-alexeyenko art-alexeyenko requested a review from a team June 19, 2023 21:35
@art-alexeyenko art-alexeyenko requested a review from ambrauer June 20, 2023 18:57
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

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

Looks good! Feel free to merge once conflict is resolved and checks pass.

@art-alexeyenko art-alexeyenko merged commit 48164d4 into dev Jun 28, 2023
@art-alexeyenko art-alexeyenko deleted the feature/583529-vercel-kv-support branch June 28, 2023 14:35
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