Menu

1 / 3

Timestamp attributes are now supported in Vercel Flags - Vercel

Vercel News·Vincent Derks·8 days ago
#LvyBWB3b
#vercel#time#timestamp#flags#attribute
Reading 0:00
15s threshold

Vercel Flags now supports timestamp attributes, so you can target entities by date and time.

Use timestamp attributes to show a campaign page only between two dates, run a Black Friday promotion, or target users who registered before a cutoff.

Copy link to heading Configure a timestamp attribute

You can configure timestamp attributes in the dashboard or via the CLI.

In the Vercel dashboard, open Flags , select Entities , and create or select an entity. Add an attribute and set its data type to timestamp .

Or define the attribute with the CLI:

# On a new entity

vercel flags entities create system --label System \

--attribute time:timestamp

# On an existing entity

vercel flags entities update system --add-attribute time:timestamp

Define a timestamp attribute with the Vercel CLI.

Whether you configure the attribute in the dashboard or CLI, your application must provide its value when evaluating a flag.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.