Skip to content

Flags worked in local but not in prod #112

@naqi

Description

@naqi

Thank you for building this library. I had a special use case and this fit it perfectly! The documentation and example have been super helpful in getting this implemented in a day.

Having said that it took an other day to get it working in our production env. I enabled toolbar for preview and prod builds. Browser extension is installed and I am logged in to my Vercel account. I only have one Vercel account so there was no chance I would be signed in to wrong account.

Image

After redeploy, I started seeing the toolbar. However, flags explorer kept showing blank slate. Digging deeper I noticed that Flags Endpoint was getting 401 errors in production deployment.

Image

Image

When making the same call from a curl request I was getting 200.

curl --location 'https://example.com/.well-known/vercel/flags' \
--header 'Authorization: Bearer token_extracted_from_other_request'

Today I noticed a setting in the Toolbar which seemed odd to me since I had already enabled toolbar.

Image

After tapping it, I got a list of domains for my deployment. Once I selected a domain I can now see my feature flags.

Is this expected behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions