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

Implement route to invalidate data cache #2916

Merged
merged 4 commits into from
Mar 4, 2025

Conversation

SamyPesse
Copy link
Member

No description provided.

Copy link

linear bot commented Mar 4, 2025

Copy link

changeset-bot bot commented Mar 4, 2025

🦋 Changeset detected

Latest commit: d8a5cfd

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

This PR includes changesets to release 1 package
Name Type
gitbook-v2 Minor

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

export async function POST(req: NextRequest) {
const json = (await req.json()) as JsonBody;

if (GITBOOK_APP_SECRET && req.headers.get('x-gitbook-secret') !== GITBOOK_APP_SECRET) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a weak security. The good security would be to sign the body with the secret.

Copy link
Contributor

github-actions bot commented Mar 4, 2025

Copy link

argos-ci bot commented Mar 4, 2025

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

Build Status Details Updated (UTC)
customers (Inspect) 👍 Changes approved 11 changed Mar 4, 2025, 12:46 PM
customers-v2 (Inspect) 👍 Changes approved 10 changed Mar 4, 2025, 12:48 PM
default (Inspect) 👍 Changes approved 6 changed Mar 4, 2025, 12:48 PM

@SamyPesse SamyPesse merged commit 76c7974 into main Mar 4, 2025
16 of 18 checks passed
@SamyPesse SamyPesse deleted the samy/rnd-6371-route-to-revalidate-tags-2 branch March 4, 2025 12:52
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