Skip to content

Commit

Permalink
DOCSP-37067 Remove old mentions of realm_config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseymoore committed Jul 11, 2024
1 parent 196ea41 commit 83d150c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// :snippet-start: materialize-total-sales-test
const { app_id } = require("../../realm_config.json");
const { app_id } = require("../../root_config.json");
const Realm = require("realm");
const { BSON } = require("realm");

Expand Down
4 changes: 2 additions & 2 deletions source/apps/copy-app-copy-config-files.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Copy all configuration files from your original App, except for
``realm_config.json``, to the new App's configuration directory. You
should use the new App's ``realm_config.json`` and overwrite any other
``root_config.json``, to the new App's configuration directory. You
should use the new App's ``root_config.json`` and overwrite any other
configuration files.

.. example::
Expand Down
4 changes: 2 additions & 2 deletions source/apps/environment.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ Procedure

Your app always runs in a specific environment, which affects the value of all
environment values. You can specify the current environment for your app in
``realm_config.json``:
``root_config.json``:

.. code-block:: json
:caption: realm_config.json
:caption: root_config.json

{
...,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { app_id } = require("../../realm_config.json");
const { app_id } = require("../../root_config.json");
const Realm = require("realm");
const { BSON } = require("realm");

Expand Down
2 changes: 1 addition & 1 deletion source/reference/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ using structured JSON configuration and JavaScript source code files.

You can include arbitrarily named files in your realm app config, with a few exceptions.
The following filenames are used to define and configure components in your App:
``stitch.json``, ``config.json``, ``realm_config.json``, and ``app_config.json``.
``stitch.json``, ``config.json``, ``root_config.json``, and ``app_config.json``.
Files with these names must conform to a specific schema for their component type.
Using these file names when the file's content fails to conform to that schema
throws an error when you import the app using the CLI.
Expand Down
2 changes: 1 addition & 1 deletion source/security/network.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Allowed Request Origins
-----------------------

You can define this :ref:`configuration option <appconfig-app>` in the
app-level ``realm_config.json`` file. This field accepts an array of
app-level ``root_config.json`` file. This field accepts an array of
URLs that incoming requests may originate from. If you define any allowed
request origins, then App Services blocks any incoming request from
an origin that is not listed.
Expand Down
4 changes: 2 additions & 2 deletions source/tutorial/react-native.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ Atlas App Services App
~~~~~~~~~~~~~~~~~~~~~~

The template app includes a fully configured App Services App in the
``backend`` directory. It has a unique ``app_id`` value in
``realm_config.json`` that client applications use to connect.
``backend`` directory. It has a unique ``appId`` value in
``atlasConfig.json`` that client applications use to connect.

It also includes the following pre-defined configurations:

Expand Down

0 comments on commit 83d150c

Please sign in to comment.