✨ get cdn endpoint from env
This commit is contained in:
		
							parent
							
								
									200479f135
								
							
						
					
					
						commit
						a88767ead3
					
				| @ -163,7 +163,7 @@ export class FosscordServer extends Server { | ||||
| 				indexHTML | ||||
| 					.replace( | ||||
| 						/CDN_HOST: ".+"/, | ||||
| 						`CDN_HOST: "${(Config.get().cdn.endpoint || "http://localhost:3003").replace(/https?:/, "")}"` | ||||
| 						`CDN_HOST: "${(Config.get().cdn.endpoint || process.env.CDN || "http://localhost:3003").replace(/https?:/, "")}"` | ||||
| 					) | ||||
| 					.replace( | ||||
| 						/GATEWAY_ENDPOINT: ".+"/, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flam3rboy
						Flam3rboy