Merge branch 'main' into tailwind-integration

This commit is contained in:
Jesse Winton
2024-08-20 11:08:13 -04:00
13 changed files with 355 additions and 44 deletions

View File

@@ -51,7 +51,7 @@ export const actions = {
});
// Redirect to the account page.
redirect(301, "/account");
redirect(302, "/account");
},
};
```

View File

@@ -15,7 +15,7 @@ import { redirect } from "@sveltejs/kit";
export async function load({ locals }) {
// Logged out users can't access this page.
if (!locals.user) redirect(301, "/signup");
if (!locals.user) redirect(302, "/signup");
// Pass the stored user local to the page.
return {
@@ -34,7 +34,7 @@ export const actions = {
event.cookies.delete(SESSION_COOKIE, { path: "/" });
// Redirect to the sign up page.
redirect(301, "/signup");
redirect(302, "/signup");
},
};
```

View File

@@ -39,7 +39,7 @@ export const actions = {
`${event.url.origin}/signup`
);
redirect(301, redirectUrl);
redirect(302, redirectUrl);
},
};