UNPKG

dev-toolkit

Version:

Universal Development Toolkit for React Veterans

10 lines (8 loc) 573 B
// Get environment variables shared between the client & server // NOTE: `NODE_ENV` is available by default but for security reasons, all other // environment variables must be declared explicitly in `dev-toolkit.config.js`. import { sharedEnvs } from 'dev-toolkit/settings'; // Example of explicitly declared env which will be bundled into client-bundle. // Make sure you understand how these envs flow through the app & into the client. // Hint: Try running `npm run dev` and compare output with `npm run start` export const customEnvContent = sharedEnvs.MY_CUSTOM_ENV;