Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1777

Ability to configure location of `mongodb-realm` directory generated by Node/React Native SDKs

      Problem

      Developers using the SDK cannot configure the location of the mongodb-realm directory generated by the SDK when using Atlas App Services functionality (including Device Sync).

      The generated location of the mongodb-realm directory causes issues when building applications with Electron. see this forum thread for a community user-reported error. and see this application i build a couple months back for a example of the error in a full application.

      I'm not sure if there are other scenarios that require or would benefit from this solution, but i could imagine that there are.

      Solution

      Add an additional AppConfiguration property for specifying the path for the mongodb-realm directory.

      For example:

      AppConfiguration.mongodbRealmFilePath = 'my/custom/path';
      

      Note: the .NET Realm SDK already has a similar implementation of this functionality with BaseFilePath.

      How important is this improvement for you?

      Would be a major improvement

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: