Skip to content

Commit

Permalink
Fix cookie handling in development
Browse files Browse the repository at this point in the history
  • Loading branch information
wezm committed Feb 7, 2023
1 parent 29744d0 commit c73aa98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crystal/config/cookies.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Lucky::CookieJar.configure do |settings|
# You can set other defaults for cookies here. For example:
#
# cookie.expires(1.year.from_now).domain("mydomain.com")
cookie.expires(1.week.from_now).domain("readrust.net")
if LuckyEnv.production?
cookie.expires(1.week.from_now).domain("readrust.net")
else
cookie
end
}
end

0 comments on commit c73aa98

Please sign in to comment.