We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29744d0 commit c73aa98Copy full SHA for c73aa98
crystal/config/cookies.cr
@@ -21,6 +21,10 @@ Lucky::CookieJar.configure do |settings|
21
# You can set other defaults for cookies here. For example:
22
#
23
# cookie.expires(1.year.from_now).domain("mydomain.com")
24
- cookie.expires(1.week.from_now).domain("readrust.net")
+ if LuckyEnv.production?
25
+ cookie.expires(1.week.from_now).domain("readrust.net")
26
+ else
27
+ cookie
28
+ end
29
}
30
end
0 commit comments