Implement Labrinth Canary API flag (#5531)
This commit is contained in:
@@ -25,7 +25,11 @@ export default defineNuxtRouteMiddleware(async (to) => {
|
||||
|
||||
const queryClient = useAppQueryClient()
|
||||
const authToken = useCookie('auth-token')
|
||||
const client = useServerModrinthClient({ authToken: authToken.value || undefined })
|
||||
const flags = useFeatureFlags()
|
||||
const client = useServerModrinthClient({
|
||||
authToken: authToken.value || undefined,
|
||||
canaryCookie: flags.value.labrinthApiCanary,
|
||||
})
|
||||
const tags = useGeneratedState()
|
||||
const projectId = to.params.id as string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user