File tree Expand file tree Collapse file tree 6 files changed +24
-24
lines changed Expand file tree Collapse file tree 6 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 1- import { verifyAccess , type ApiData } from "flags" ;
2- import { createFlagsDiscoveryEndpoint , getProviderData } from "flags/next" ;
3- import { type NextRequest } from "next/server" ;
4- import * as flags from "../../../../flags" ;
5-
6- export const GET = createFlagsDiscoveryEndpoint (
7- async ( request : NextRequest ) => {
8- const access = await verifyAccess ( request . headers . get ( "Authorization" ) ) ;
9- if ( ! access ) {
10- return null ;
11- }
12- const providerData : ApiData = getProviderData ( flags ) ;
13- // return the ApiData directly, without a NextResponse.json object.
14- return providerData ;
15- }
16- ) ;
Original file line number Diff line number Diff line change 1+ import { verifyAccess , type ApiData } from "flags" ;
2+ import { createFlagsDiscoveryEndpoint , getProviderData } from "flags/next" ;
3+ import { type NextRequest } from "next/server" ;
4+ import * as flags from "../../../flags" ;
5+
6+ export const GET = createFlagsDiscoveryEndpoint (
7+ async ( request : NextRequest ) => {
8+ const access = await verifyAccess ( request . headers . get ( "Authorization" ) ) ;
9+ if ( ! access ) {
10+ return null ;
11+ }
12+ const providerData : ApiData = getProviderData ( flags ) ;
13+ // return the ApiData directly, without a NextResponse.json object.
14+ return providerData ;
15+ }
16+ ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import { animationFeatureFlag } from "./flags" ;
1+ import { animationFeatureFlag } from ".. /flags" ;
22import AnimatedBox from "../components/AnimatedBox" ;
33
44export default async function AnimationPage ( ) {
Original file line number Diff line number Diff line change @@ -5,3 +5,9 @@ export const weatherWidgetFlag = flag({
55 description : "Enable the weather widget for users." ,
66 decide : ( ) => process . env . NEW_WEATHER_FLAG === "true" ,
77} ) ;
8+
9+ export const animationFeatureFlag = flag < boolean > ( {
10+ key : "animation-feature" ,
11+ description : "Enable animations in the app." ,
12+ decide : ( ) => process . env . ANIMATION_FEATURE_ENABLED === "true" ,
13+ } ) ;
Original file line number Diff line number Diff line change 1+ "use client" ;
12import { useState } from "react" ;
23
34export default function TaskList ( ) {
You can’t perform that action at this time.
0 commit comments