# How to publish Babylon.js from BabylonJS Editor to Web server

**URL:** <https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072>\
**Category:** Questions\
**Created:** [March 2, 2022, 7:20am UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072 "2022-03-02T07:20:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZzMarmot](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zzmarmot/32/23651_2.png) [@ZzMarmot](https://forum.babylonjs.com/u/ZzMarmot)\
**Post date:** [March 2, 2022, 7:20am UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/1 "2022-03-02T07:20:34Z")

</div>

I am trying to host the Babylon scene created on the Babylon.JS Editor. However, when I dragged and dropped the index.html, dist folder and scenes folder to the server like Amplify. It threw 403 error. Does anyone successfully host a Babylon scene to the server before?

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [March 2, 2022, 3:32pm UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/2 "2022-03-02T15:32:12Z")

</div>

Hello! It’s a bit hard to know without more information, but a 403 error usually indicates something in your authorization/security setup ( [403 Forbidden - HTTP | MDN (mozilla.org)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403) ), so I`d check that first 🙂

@julien-moreau is the editor creator and might have some idea of what’s going on editor-side

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [March 2, 2022, 3:45pm UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/3 "2022-03-02T15:45:02Z")

</div>

> [@ZzMarmot](#):
>
> It threw 403 error.

As @carolhmj said there is a file (or files) which couldn’t be accessed. Check the developer console to see which file is it.

---

<div class="post-metadata">

**Author:** ![ZzMarmot](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zzmarmot/32/23651_2.png) [@ZzMarmot](https://forum.babylonjs.com/u/ZzMarmot)\
**Post date:** [March 2, 2022, 6:52pm UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/4 "2022-03-02T18:52:31Z")

</div>

Yes. I dropped “scenes” folder which contains a scene.babylon file and the server was unable to load it.

```auto
Unable to load from ./scenes/scene/scene.babylon: importScene of scene.babylon from Babylon.JS Editor version: v4.0.5, exporter version: v4.2.0
(anonymous) @ index.ts:48

```

It happened on the Chrome but not on the FireFox.

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [March 3, 2022, 1:08pm UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/5 "2022-03-03T13:08:29Z")

</div>

I have problems with running the deployed application of Chrome as well, but I get another kind of error. I will create a topic in the Debug section.

On Firefox it runs well.

Thanks!

EDIT: Can you try this? [https://editor-test.babylonjs.xyz/](https://editor-test.babylonjs.xyz/)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 3, 2022, 4:59pm UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/6 "2022-03-03T16:59:01Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/9/7909ad36e7625c2503c2e44925b4e43c73680a06.png)  
it is not using 4.2.1 so it won t work on Chrome ☹

---

<div class="post-metadata">

**Author:** ![julien-moreau](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/julien-moreau/32/12070_2.png) [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Post date:** [March 4, 2022, 1:30am UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/7 "2022-03-04T01:30:54Z")

</div>

Hi !  
Nice catch @sebavan !  
@ZzMarmot you can update the version of BabylonJS to 4.2.1 in your project and reinstall the dependencies using npm. Also don’t forget to rebuild (via the editor or “npm run build”) before re-uploading 🙂

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [April 1, 2022, 12:10pm UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/8 "2022-04-01T12:10:16Z")

</div>

Hello @ZzMarmot just checking in if you still have issues

---

<div class="post-metadata">

**Author:** ![ZzMarmot](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zzmarmot/32/23651_2.png) [@ZzMarmot](https://forum.babylonjs.com/u/ZzMarmot)\
**Post date:** [April 1, 2022, 6:49pm UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/9 "2022-04-01T18:49:32Z")

</div>

Not for now. The new version V4.1.0 has solved the problem.

---

<div class="post-metadata">

**Author:** ![ZzMarmot](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zzmarmot/32/23651_2.png) [@ZzMarmot](https://forum.babylonjs.com/u/ZzMarmot)\
**Post date:** [May 4, 2022, 5:33pm UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/10 "2022-05-04T17:33:44Z")

</div>

I am happy to share that our team launched an Open Source BabylonJS Editor Plugin with a feature to publish your scene to AWS Amplify which can help you easily host the webpage. [GitHub - aws-samples/aws-tools-for-babylonjs-editor: AWS Tools for Babylon.JS Editor is a suite of tools meant to interact with Babylon.JS Editor by utilizing the capabilities of AWS products.](https://github.com/aws-samples/aws-tools-for-babylonjs-editor) Please play with it and hope it can help the community.

---

<div class="post-metadata">

**Author:** ![julien-moreau](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/julien-moreau/32/12070_2.png) [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Post date:** [May 9, 2022, 6:23am UTC](https://forum.babylonjs.com/t/how-to-publish-babylon-js-from-babylonjs-editor-to-web-server/28072/11 "2022-05-09T06:23:04Z")

</div>

Excellent @ZzMarmot !! You rox !!  
Still don’t hesitate if you need more tools from the editor’s API for your plugin(s) !
