Skip to content

Commit 8db48cf

Browse files
authored
Merge pull request #3501 from DrMoshtael/patch-5
Changed Constants.manifest to Constants.expoConfig
2 parents f2c868e + ac640d7 commit 8db48cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/10/en/part10c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ Note that it is <i>never</i> a good idea to put sensitive data into the applicat
471471

472472
Instead of the hardcoded Apollo Server's URL, use an environment variable defined in the <i>.env</i> file when initializing the Apollo Client. You can name the environment variable for example <em>APOLLO_URI</em>.
473473

474-
<i>Do not</i> try to access environment variables like <em>process.env.APOLLO_URI</em> outside the <i>app.config.js</i> file. Instead use the <em>Constants.manifest.extra</em> object like in the previous example. In addition, do not import the dotenv library outside the <i>app.config.js</i> file or you will most likely face errors.
474+
<i>Do not</i> try to access environment variables like <em>process.env.APOLLO_URI</em> outside the <i>app.config.js</i> file. Instead use the <em>Constants.expoConfig.extra</em> object like in the previous example. In addition, do not import the dotenv library outside the <i>app.config.js</i> file or you will most likely face errors.
475475

476476
</div>
477477

0 commit comments

Comments
 (0)