Skip to content

Commit

Permalink
Reduce cookie chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Nov 3, 2023
1 parent 5c02ce3 commit f583a41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/violet-windows-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@supabase/ssr': patch
---

Reduce cookie chunk size
2 changes: 1 addition & 1 deletion packages/ssr/src/utils/chunker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function createChunkRegExp(chunkSize: number) {
return new RegExp('.{1,' + chunkSize + '}', 'g');
}

const MAX_CHUNK_SIZE = 3600;
const MAX_CHUNK_SIZE = 3180;
const MAX_CHUNK_REGEXP = createChunkRegExp(MAX_CHUNK_SIZE);

/**
Expand Down

0 comments on commit f583a41

Please sign in to comment.