Hello, it appears that when an Infisical folder sy...
# infisical-help
m
Hello, it appears that when an Infisical folder synced to all Vercel environments is updated, the shared environment variables linked to the Vercel project disappear. Expected behavior: Updating the Infisical folder should not remove or affect existing shared environment variables linked to the Vercel project. Actual behavior: After the Infisical folder is updated/synced, the shared variables appear to be removed from the Vercel project. Any guidance or feedback would be appreciated, thank you.
p
Hi @mariusz.kolaszewski! When setting up the secret sync, you're presented with this option which defines how variables should be prioritized / dealt with. I'm inclined to believe you might have chosen "Overwrite Vercel" as opposed to "Import from Vercel -- prioritize Vercel". Let me know if I'm misunderstanding or if the issue persists. Thanks!
m
Hi Jake, thanks for hopping on this. The option I have selected is "Import Destination Secrets - Prioritize Infisical Values" and the vars are synced to Vercel workspace but are then dropped as shared project vars. Perhaps this is a Vercel side issue?
p
Hey Mariusz! Thanks for your patience here. I set this up on my side to see exactly what happens. I'm seeing that when a key in your Infisical folder matches a link to a shared variable, Vercel keeps the shared one but marks it as "overridden by project" . So the project value wins (synced from infisical), and the shared value stops applying to that project. This is expected behavior. Could you check the shared tab in Vercel and let me know if they show as overridden or if they truly have disappeared? If it's the override, adding a key prefix on the sync can avoid this and keep the two sets apart. Let me know! Thanks.
m
Hi Jake, the vars are entirely disappearing from shared tab.
p
GM Mariusz, I was able to reproduce this! Thank you for flagging. I will get this to the team so we can work on a fix. I'll let you know! Jake
m
Fantastic, thank you!