Skip to content

Commit

Permalink
Use a recent version of Realm Web. v1.5.1 uses a base URL which fails (
Browse files Browse the repository at this point in the history
…#2312)

if you are not using AWS.

## Pull Request Info

### Jira

- https://jira.mongodb.org/browse/HELP-39788

### Staged Changes (Requires MongoDB Corp SSO)

-
[PAGE_NAME](https://docs-mongodbcom-staging.corp.mongodb.com/realm/docsworker-xlarge/BRANCH_NAME/)

### Review Guidelines


[REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md)
  • Loading branch information
kneth committed Nov 23, 2022
1 parent 055996c commit 261b96f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions source/web/install.txt
Expand Up @@ -5,15 +5,15 @@ Install the Realm Web SDK
=========================

.. contents:: On this page
:local:
:local:
:backlinks: none
:depth: 2
:class: singlecol

Overview
--------

This page shows you how to install the Realm Web SDK to use with your application.
This page shows you how to install the Realm Web SDK to use with your application.

Before You Begin
----------------
Expand All @@ -37,39 +37,39 @@ Install the Web SDK
-------------------

.. tabs::

.. tab:: npm
:tabid: npm

.. code-block:: shell

npm install realm-web

.. tab:: yarn
:tabid: yarn

.. code-block:: shell

yarn add realm-web

.. tab:: CDN
:tabid: CDN

Add a ``<script>`` tag to the ``<head>`` of your HTML file to load
the Realm Web SDK as a global variable from a content delivery
network.

Use the most recent version:

.. code-block:: html

<script src="https://unpkg.com/realm-web/dist/bundle.iife.js"></script>

Or import a specific version:

.. code-block:: html
<script src="https://unpkg.com/realm-web@1.5.1/dist/bundle.iife.js"></script>

<script src="https://unpkg.com/realm-web@1.7.1/dist/bundle.iife.js"></script>

.. _web-install-node:

Expand All @@ -80,5 +80,5 @@ In order to use Realm Web for Node.js environments, you must
install two additional peer dependencies:

.. code-block:: shell

npm install realm-web node-fetch abort-controller

0 comments on commit 261b96f

Please sign in to comment.