fix cookie name (#4295)

pull/4321/head
alannnc 2022-09-08 11:50:21 -06:00 committed by GitHub
parent 47ac58aaf7
commit 1aefa0efb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -147,10 +147,7 @@ export async function getServerSideProps(ctx: AppGetServerSidePropsContext) {
if (cookies && cookies["return-to"]) {
const returnTo = cookies["return-to"];
if (returnTo) {
ctx.res.setHeader(
"Set-Cookie",
"returnToGettingStarted=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"
);
ctx.res.setHeader("Set-Cookie", "return-to=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT");
return {
redirect: {
destination: `${returnTo}`,