Skip to content

Commit

Permalink
Update .changeset/tiny-days-dance.md
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele Stoppa <[email protected]>
  • Loading branch information
matthewp and ematipico authored Jan 3, 2024
1 parent d624785 commit d4ab349
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .changeset/tiny-days-dance.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ Adds new `encode` and `decode` functions to allow customizing how cookies are en

```astro
---
import { encodeCookieValue } from "./cookies";
Astro.cookies.set('url', Astro.url.toString(), {
// Override the default encoding so that URI components are not encoded
encode: o => o
encode: value => encodeCookieValue(value)
});
---
```
Expand Down

0 comments on commit d4ab349

Please sign in to comment.