Skip to content

Got 40105 error on vercel #9

@twxxk

Description

@twxxk

I noticed that I always got the same nonce.
https://faqs.ably.com/40105-nonce-value-replayed

Workaround:
I could suppress the error by adding the revalidation.

export const revalidate = 0;
return Response.json(tokenRequestData, {
status: 200,
headers: {
'Cache-Control': 'no-store',
'CDN-Cache-Control': 'no-store',
'Vercel-CDN-Cache-Control': 'no-store'
}
});

I got another error when I made it the edge function

export const runtime = 'edge';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions