Skip to content

Instantly share code, notes, and snippets.

View devcshort's full-sized avatar
:octocat:
Working

Chris Short devcshort

:octocat:
Working
View GitHub Profile

Pros

  • Usage is simple, you could directly access the config via process.env.NEXT_PUBLIC_*, for example:
// call-site, agents.js
const restaurantApi = axios.createConfig({
 baseUrl: process.env.NEXT_PUBLIC_RESTAURANT_API_URI,