<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Blog on qko@coffee:~$</title>
		<link>https://qko.coffee/blog/</link>
		<description>Recent content in Blog on qko@coffee:~$</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Mon, 16 Mar 2026 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://qko.coffee/blog/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Runtime configuration with Vite and CloudFront</title>
				<link>https://qko.coffee/blog/runtime-configuration-vite-cloudfront/</link>
				<pubDate>Mon, 16 Mar 2026 00:00:00 +0000</pubDate>
				<guid>https://qko.coffee/blog/runtime-configuration-vite-cloudfront/</guid>
				<description>&lt;p&gt;Vite handles environment variables through &lt;code&gt;.env&lt;/code&gt; files.&lt;/p&gt;&#xA;&lt;p&gt;During development, it loads &lt;code&gt;.env.development&lt;/code&gt; and resolves &lt;code&gt;import.meta.env.VITE_*&lt;/code&gt; references on the fly through its development server.&lt;/p&gt;&#xA;&lt;p&gt;During build, it reads &lt;code&gt;.env.production&lt;/code&gt; and inlines the values directly into the output bundle, replacing every &lt;code&gt;import.meta.env.VITE_*&lt;/code&gt; with the corresponding hardcoded string.&lt;/p&gt;&#xA;&lt;p&gt;This means one artifact per environment. This breaks the build-once-deploy-everywhere principle. The fix is to move configuration injection from build time to runtime, so a single artifact can serve any environment.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
