Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCSP-37067 Remove old mentions of realm_config.json #799

Merged
merged 6 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/functions/functions_tester/nodemon.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"watch": [
"realm_config.json",
"root_config.json",
"auth",
"data_sources",
"environments",
Expand Down
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
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 app = new Realm.App(app_id);
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
8 changes: 4 additions & 4 deletions source/apps/copy-app-copy-config-files.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
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::

.. code-block:: bash

# Copy all configuration files except for realm_config.json
# Copy all configuration files except for root_config.json
cp -r myapp myapp-temp
rm myapp-temp/realm_config.json
rm myapp-temp/root_config.json
cp -r myapp-temp/* myapp-copy
rm -rf myapp-temp
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/includes/realm-application-file-schema.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. code-block:: none

app/
├── realm_config.json
├── root_config.json
├── auth/
│ ├── providers.json
│ └── custom_user_data.json
Expand Down
2 changes: 1 addition & 1 deletion source/openapi-admin-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ paths:
required: false
description: |-
The configuration file schema version to export. This value
corresponds to `config_version` in `realm_config.json`.
corresponds to `config_version` in `root_config.json`.
example: 20210101
schema:
type: string
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
Loading