Skip to content

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

Open
royorange wants to merge 3 commits intonuxt:mainfrom
royorange:fix-sql-dump-validation
Open

fix: add sql dump validation and reset the wrong dump when decompression fails#3342
royorange wants to merge 3 commits intonuxt:mainfrom
royorange:fix-sql-dump-validation

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 May 9, 2025
@royorange royorange changed the title fix: sql dump validation and reset the wrong dump when decompression fails May 9, 2025
@pkg-pr-new
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

1 participant