Unverified Commit 7077bf8c authored by Keen Yee Liau's avatar Keen Yee Liau Committed by GitHub

add warning to update featureName in FEATURE_USAGE backend (#30283)

`featureName` is restricted to certain values for security reasons.
Before any change is made in the client, backend code has to be updated first.
parent d26e035b
...@@ -123,6 +123,9 @@ export function eventBuildOptimize( ...@@ -123,6 +123,9 @@ export function eventBuildOptimize(
export const EVENT_BUILD_FEATURE_USAGE = 'NEXT_BUILD_FEATURE_USAGE' export const EVENT_BUILD_FEATURE_USAGE = 'NEXT_BUILD_FEATURE_USAGE'
export type EventBuildFeatureUsage = { export type EventBuildFeatureUsage = {
// NOTE: If you are adding features, make sure to update the `enum` field
// for `featureName` in https://github.com/vercel/next-telemetry/blob/master/events/v1/featureUsage.ts
// *before* you make changes here.
featureName: featureName:
| 'next/image' | 'next/image'
| 'next/script' | 'next/script'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment