Skip to content

fix: add sql dump validation and reset the wrong dump when decompression fails #3342

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

royorange
Copy link

πŸ”— Linked issue

#3341

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

  • Add validation for the sql_dump after prerender is done, and terminate the process when the validation fails. This
    issue is always triggered when server middleware executes during the build process.
  • Reset the sql dump in localStorage when decompression fails. Otherwise, the site will not refetch the latest dump
    when the wrong data is cached but the checksum hasn't changed.

Resolves #3341

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@royorange royorange changed the title Fix sql dump validation fix: sql dump validation and reset the wrong dump when decompression fails May 9, 2025
@royorange royorange changed the title fix: sql dump validation and reset the wrong dump when decompression fails fix: add sql dump validation and reset the wrong dump when decompression fails May 9, 2025
Copy link

pkg-pr-new bot commented May 9, 2025

npm i https://pkg.pr.new/@nuxt/content@3342

commit: 1280e30

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.

Prerender triggers custom server middlewares during building
1 participant