<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Different base resources for an environment]]></title><description><![CDATA[<p dir="auto">If I want to host my CSS and images on a different hostname for each environment, how can I do so?</p>
<p dir="auto">So for dev, I want all these to be pulled from <a href="http://dev.example.com" rel="nofollow ugc">dev.example.com</a>. For prod from <a href="http://prod.example.com" rel="nofollow ugc">prod.example.com</a>, and so on.</p>
<p dir="auto">What is the best way to do this?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/1337/different-base-resources-for-an-environment</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 13:38:02 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/1337.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Oct 2021 13:48:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Different base resources for an environment on Thu, 28 Oct 2021 14:04:05 GMT]]></title><description><![CDATA[<p dir="auto">The best way to do this is to put a value on the <code>tenant.data</code> object. From there you can access it in each theme.</p>
<p dir="auto">So, for the tenant in the dev environment, set <code>tenant.data.assethost</code> to <code>dev.example.com</code>. For the prod environment,  set <code>tenant.data.assethost</code> to <code>dev.example.com</code>.</p>
<p dir="auto">Then, in your theme, you'd have something like this:</p>
<pre><code>&lt;link rel="stylesheet" href="${tenant.data.assethost}/styles.css"/&gt;
</code></pre>
<p dir="auto">The reason to use the <code>tenant</code> object is that it is <a href="https://fusionauth.io/docs/v1/tech/themes/template-variables/#common-variables" rel="nofollow ugc">available on every theme template</a>.</p>
<p dir="auto">This does mean that your tenant configuration will differ slightly between environments. You can also replicate this field value between tenants if you are using multiple tenants.</p>
]]></description><link>https://fusionauth.io/community/forum/post/3882</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/3882</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 28 Oct 2021 14:04:05 GMT</pubDate></item></channel></rss>