# MFE Deployment to S3/CloudFront

**URL:** <https://discuss.openedx.org/t/mfe-deployment-to-s3-cloudfront/9833>\
**Category:** Site Operators\
**Created:** [April 13, 2023, 2:33pm UTC](https://discuss.openedx.org/t/mfe-deployment-to-s3-cloudfront/9833 "2023-04-13T14:33:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew2](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/andrew2/32/5176_2.png) [@Andrew2](https://discuss.openedx.org/u/Andrew2)\
**Post date:** [April 13, 2023, 2:33pm UTC](https://discuss.openedx.org/t/mfe-deployment-to-s3-cloudfront/9833/1 "2023-04-13T14:33:07Z")

</div>

I’ve been stuck on this for a few days now.

For purposes of ease of deployment, I am trying to host an MFE (frontend-app-learning) on a S3/Cloudfront distribution. The backend is Tutor/Olive. I have a custom tutor plugin to handle the backend config.

The plugin _seems_ to do its job.

S3/CloudFront _seems_ to do its job.

But when I navigate to the course-home page, I get a blank screen with the following error in the console:

> Uncaught Error: getLocale called before configuring i18n. Call configure with messages first.

For now, I am manually installing/building from the command line and copying to S3.

Based on the above error, does anyone see anything I should be looking at?

---

<div class="post-metadata">

**Author:** ![Andrew2](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/andrew2/32/5176_2.png) [@Andrew2](https://discuss.openedx.org/u/Andrew2)\
**Post date:** [April 13, 2023, 3:56pm UTC](https://discuss.openedx.org/t/mfe-deployment-to-s3-cloudfront/9833/2 "2023-04-13T15:56:57Z")

</div>

Never mind. I was missing an environment variable.
