megachangelog
Feature

Timestamp attributes now supported in Vercel Flags

Vercel Flags now supports timestamp attributes for entities, allowing you to create time-based targeting rules. Use this feature to run limited-time campaigns, show content between specific dates, or target users based on registration date.

now supports timestamp attributes for , which represent the users, teams, devices, or requests evaluated by a flag.Vercel Flagsentities

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.

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

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

Or define the attribute with the CLI:

Whether you configure the attribute in the dashboard or CLI, your application must provide its value when evaluating a flag. The entity and attribute names must match your configuration, and the value must be a Unix epoch timestamp in milliseconds.

This Flags SDK example passes the current time as . returns the required value in milliseconds. Keeping it inside ensures that every flag evaluated during the same request uses the same time:system.timeDate.now()dedupe()

In the dashboard, open the flag and add a targeting rule using the timestamp attribute. The rule compares the value from your application with a date and time you choose.

Rules support , , , and . The date and time picker uses your local timezone.is afteris at or afteris beforeis at or before

To add a time-based targeting rule with the CLI, use , , , or :afterat-or-afterbeforeat-or-before

Learn how to and , or read the .provide entities in coderelease a flag at a specific timeFlags documentation

Read more

Configure a timestamp attribute

Add a targeting rule

flagstargetingfeaturetimestampscampaigns

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Feature

Agents can now buy domains with the Vercel CLI

Vercel CLI now enables agents to discover, check availability, and initiate domain purchases through structured commands, with purchase confirmation remaining under user control via interactive terminal or dashboard approval.

clidomainsagentsapi
Announcement

New Pro teams default to 30-day deployment retention

Pro teams now default to a 30-day deployment retention period to balance keeping recent history available while reducing storage costs. You can configure a longer retention period in team settings if needed.

deploymentsstoragepro-teamspricing
Announcement

Deployment Storage billing begins for existing Pro teams

Pro teams will now be charged for Deployment Storage and Functions Storage at $0.10 per GB-month. The default deployment retention window changes to 30 days, with deployments older than 30 days deleted automatically unless you adjust your retention settings beforehand.

billingstoragepricingdeployments
See all Vercel changes →