Skip to content

Investigate deploying react-admin as soul extension #5

@IanMayo

Description

@IanMayo

We currently have to configure soul to overcome CORS requests.

But, if we served the static built react-admin as a soul extension, all requests would come from the host url.

Extensions are documented here: https://github.com/thevahidal/soul/blob/main/docs/extensions-examples.md

The big-picture is to:

  1. build a production release of the react-admin app, yarn build . The compiled app will end up in the build folder
  2. copy this built folder into a sub-directory of Soul
  3. create a Soul extension to open index.html on the built app
  4. call the Soul extension API, and check it:
    a) serves our app
    b) connects to Soul API

For that deployment strategy, we can probably even simplify the react-admin setup, since we don't need to specify the IP/Port for the soul server - it's the current one 🙂

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions