A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/mars/create-react-app-buildpack/issues/131 below:

Can't get runtime env variables anymore on Create-React-App 2.0 · Issue #131 · mars/create-react-app-buildpack · GitHub

Hi,

I've recently been using this buildpack. I took note that runtime env variables wouldn't be possible without the "@mars/heroku-js-runtime-env" dependecy. So I installed it and wrote something like;

import runtimeEnv from '@mars/heroku-js-runtime-env'; const env = runtimeEnv(); export const serverUrl = env.REACT_APP_BACKEND_API || 'https://backend-staging.herokuapp.com/';

It worked great for a while, and now I seem to be getting an error;

Runtime env vars cannot be parsed. Content is {{REACT_APP_VARS_AS_JSON_______…

I believe this happened right after upgrading to create-react-app 2.0


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4