Environment variables should be placed in a .cursorignore file so chat and composer don't accidentally rewrite them, but you must then describe what's in those env files in the cursorrules file, otherwise Cursor has no knowledge of which env files exist.

normativepending

Speaker

David

Evidence Quote

you need to mention what is in the environment files in your cursor rules file otherwise cursor has no clue what EnV files you have and where

Source

I spent 400+ hours in Cursor, here’s what I learnedDavid Ondrej
Created: 6/18/2026, 2:32:09 PM

My Notes

Loading notes...