Programmatically set env file? Per-student setup

If you’re going to remix programmatically, it’s better to POST to https://api.glitch.com/projects/<project-name>/remix. You can send a JSON body like:

{
  env: {
    var1: "value1",
    var2: "value2"
  }
}

It will return

{
    id: project.id,
    domain: project.domain,
    inviteToken: project.invite_token,
    joinLink: joinLink
  };