Pull request environment variables

How do environment variables work for the preview environments created off of pull requests? Ideally we would want it to copy the same variables as our dev environment, but is there a way for us to add a set of default variables for these environments?