#How to configure the remix.env.d.ts file?

1 messages · Page 1 of 1 (latest)

half jolt
#

I just wondering how you guys define the types of your .env variables in Remix.

I've tryied this way, but idk if it's the right way to do it or not:

/// <reference types="@remix-run/node" />

export {};
declare global {
  namespace NodeJS {
    interface ProcessEnv {
      API_URL: string;
    }
  }
}```
severe pike