Skip to content

Commit

Permalink
use default serializeVisitorKeyCookie for example
Browse files Browse the repository at this point in the history
  • Loading branch information
dferber90 committed Jun 16, 2023
1 parent 0fca484 commit 2d72b68
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions example/flags/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const config: Configuration<AppFlags> = {
// You can just delete this line in your own application.
// It's only here because we use it while working on @happykit/flags itself.
endpoint: process.env.NEXT_PUBLIC_FLAGS_ENDPOINT,
serializeVisitorKeyCookie: (visitorKey) => {
console.log("serializedVisitorKeyCookie called", visitorKey);
return null;
},

// You can uncomment this if you do not want to set the visitorKey cookie
// serializeVisitorKeyCookie: () => null,
};

0 comments on commit 2d72b68

Please sign in to comment.