# Issues with self-deploying babylonjs CDN

**URL:** https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222
**Category:** Questions
**Tags:** cdn
**Created:** [August 25, 2025, 3:05am UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222 "2025-08-25T03:05:33Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![xiehangyun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/xiehangyun/32/30777_2.png) [@xiehangyun](https://forum.babylonjs.com/u/xiehangyun)
#### Post date: [August 25, 2025, 3:05am UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/1 "2025-08-25T03:05:33Z")

</div>

Hello everyone, I am trying to deploy CDN myself and modify the resource loading path. I modified [Tools.CDNBaseUrl](https://doc.babylonjs.com/typedoc/classes/BABYLON.Tools#cdnbaseurl),However, I found that some resources still request the default cdn path of babylonjs.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/4/64dfed2e15c6ce97c23b00e4c04a553d0f797676.png)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/3/032645683af129b0d648c3eef344ffc100b473ec.png)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/a/0/a06acf311a094ba900a3d1089f62e3c58fb4def6.png)

I cannot modify this default path when building my program. Is there an elegant solution?

---

<div class="post-metadata">

### Author: ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)
#### Post date: [August 25, 2025, 3:12pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/2 "2025-08-25T15:12:22Z")

</div>

cc @alexchuber

---

<div class="post-metadata">

### Author: ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/32839_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)
#### Post date: [August 25, 2025, 3:52pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/3 "2025-08-25T15:52:50Z")

</div>

Could you share exactly which URLs you are configuring? Is it just `Tools.CDNBaseUrl`, or are there others like `KhronosTextureContainer2.URLConfig` or the `Transcoder.WasmBaseUrl`?

---

<div class="post-metadata">

### Author: ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/32839_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)
#### Post date: [August 25, 2025, 3:53pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/4 "2025-08-25T15:53:18Z")

</div>



---

<div class="post-metadata">

### Author: ![xiehangyun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/xiehangyun/32/30777_2.png) [@xiehangyun](https://forum.babylonjs.com/u/xiehangyun)
#### Post date: [August 26, 2025, 3:08am UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/5 "2025-08-26T03:08:44Z")

</div>

Sorry, this was my mistake. I only set CDNBaseUrl and ignored [Babylon.js docs](https://doc.babylonjs.com/setup/frameworkPackages/CDN/#a-bit-more-complex---deploy-and-configure-specific-resources) .  
After configuring everything according to the documentation, everything works fine.

🥲

---

<div class="post-metadata">

### Author: ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/32839_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)
#### Post date: [August 26, 2025, 3:11pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/6 "2025-08-26T15:11:04Z")

</div>

Great! Did you wind up providing each URL individually, or just set `BABYLON.Tools.ScriptBaseUrl`? We want to make sure everything works as-expected 😃

---

<div class="post-metadata">

### Author: ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/32839_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)
#### Post date: [August 26, 2025, 3:11pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/7 "2025-08-26T15:11:07Z")

</div>



---

<div class="post-metadata">

### Author: ![xiehangyun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/xiehangyun/32/30777_2.png) [@xiehangyun](https://forum.babylonjs.com/u/xiehangyun)
#### Post date: [August 27, 2025, 1:18am UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/8 "2025-08-27T01:18:12Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/0/9090fde8071881899ebea1a7cd067783817c6c36.png)

Following the documentation, I concatenated the base address. In my code, it ultimately looks like this:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/0/206cc5b72f1f712bc7956a7fa08cd54dac1e8b43.png)

After a quick check, I haven’t found any requests still pointing to “[https://cdn.babylonjs.com/”](https://cdn.babylonjs.com/%E2%80%9D) for now.

---

<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: [August 27, 2025, 2:48pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/9 "2025-08-27T14:48:47Z")

</div>

@alexchuber it would be cool if the url in MeshOpt/Draco/KTX were also accounting for the baseURL in case it does not already ?

---

<div class="post-metadata">

### Author: ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/32839_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)
#### Post date: [August 27, 2025, 3:12pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/10 "2025-08-27T15:12:31Z")

</div>

Yeah, that’s what I’m thinking. I wouldn’t expect anyone to need to individually configure each URL. Will check this out later.

---

<div class="post-metadata">

### Author: ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/32839_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)
#### Post date: [August 27, 2025, 3:12pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/11 "2025-08-27T15:12:35Z")

</div>



---

<div class="post-metadata">

### Author: ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/32839_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)
#### Post date: [September 17, 2025, 3:22pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/12 "2025-09-17T15:22:19Z")

</div>

> <https://github.com/BabylonJS/Babylon.js/pull/17164>
>
> Currently, setting \`BaseScriptUrl\` in Babylon has no effect on the URL configura…tion of the \`ktx2decoder\` package. See \[forum issue\](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222) 
> This PR allows the consuming BabylonJS code to configure the decoder module's \`WasmBaseUrl\` to \`BaseScriptUrl\`.

---

<div class="post-metadata">

### Author: ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/32839_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)
#### Post date: [September 17, 2025, 3:22pm UTC](https://forum.babylonjs.com/t/issues-with-self-deploying-babylonjs-cdn/60222/13 "2025-09-17T15:22:22Z")

</div>


