Skip to content

Commit

Permalink
rename preview-mode to preview_mode so it works with the nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuxu committed Jul 9, 2023
1 parent 99d39df commit 2bd5ecb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const preivewModeSchema = z.object({
});
export type PreviewMode = z.infer<typeof preivewModeSchema>;
// Cookie
const cookie = createCookie("preview-mode");
const cookie = createCookie("preview_mode");
export async function serializePreviewModeToCookie(previewMode: PreviewMode) {
return await cookie.serialize(previewMode);
}
Expand Down

0 comments on commit 2bd5ecb

Please sign in to comment.