There are two ways to create a project and populate the .env file while remixing right now. You can make a link like this:
https://glitch.com/edit/#!/remix/<base-name>?<var1>=<value1>&<var2=value2>
The other way is to POST to a URL like this:
https://api.glitch.com/projects/<base-name>/remix
In that case, you should send a JSON body with the environment vars like this:
{
env:
var1: "value1"
var2: "value2"
}
The POST endpoint returns the join link for the project right now. We might be able to change that to return a JSON object that also includes the domain. Off the top of my head, I don’t remember how many things are using the returned data.