Revert last canary flag PR and use a better method (#5535)

* Revert "Implement Labrinth Canary API flag (#5531)"

This reverts commit 3b21944a75.

* Use Labrinth-Canary header instead of cookie for API canary

* prepr

* fix rebase
This commit is contained in:
aecsocket
2026-03-13 16:29:08 +00:00
committed by GitHub
parent d14360aba5
commit c8279481f8
8 changed files with 22 additions and 70 deletions

View File

@@ -25,11 +25,7 @@ export default defineNuxtRouteMiddleware(async (to) => {
const queryClient = useAppQueryClient()
const authToken = useCookie('auth-token')
const flags = useFeatureFlags()
const client = useServerModrinthClient({
authToken: authToken.value || undefined,
canaryCookie: flags.value.labrinthApiCanary,
})
const client = useServerModrinthClient({ authToken: authToken.value || undefined })
const tags = useGeneratedState()
const projectId = to.params.id as string