You can host the search UIs with MongoDB Realm's hosting.

Introduction

MongoDB Realm Hosting allows you to host, manage, and serve your application's static media and document files. You can use Hosting to store individual pieces of content or to upload and serve your entire client application.

Enabling Hosting

You need to first enable hosting for your Realm application. Navigate to "Org > Project > Realm > Application" menu and click "Enable Hosting".

Read more about enabling hosting in the official MongoDB Realm docs over here.

Uploading Search UI Files

For demonstration purposes, we will use the below Search UI on Codesandbox.io. Direct Github link for the same is over here.

First, download the search UI project's directory locally. Next, build the search UI app by running yarn && yarn build (or npm install && npm run build). Now upload the files under the build/ directory to the Realm Hosting UI.

Note: Ensure that the static/ directory is also uploaded along with the other files.

Once uploaded, select "Review Draft & Deploy" action. This will generate a public URL for your search UI app.

We just deployed our app at: https://public-demo-skxjb.mongodbstitch.com/.