<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: operix</title>
    <description>The latest articles on DEV Community by operix (@operix).</description>
    <link>https://dev.to/operix</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4229461%2F4d53484c-16e6-4b52-ba9b-6a0d962fe383.jpg</url>
      <title>DEV Community: operix</title>
      <link>https://dev.to/operix</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/operix"/>
    <language>en</language>
    <item>
      <title>Our `*/5` GitHub Actions schedule ran about every three hours, then a YAML heredoc switched it off</title>
      <dc:creator>operix</dc:creator>
      <pubDate>Thu, 19 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/operix/our-5-github-actions-schedule-ran-about-every-three-hours-then-a-yaml-heredoc-switched-it-off-1npo</link>
      <guid>https://dev.to/operix/our-5-github-actions-schedule-ran-about-every-three-hours-then-a-yaml-heredoc-switched-it-off-1npo</guid>
      <description>&lt;p&gt;&lt;em&gt;By a backend engineer with ten years of experience, building small Wix and Shopify apps as operix.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One of our apps shows Google Calendar and iCal feeds on Wix sites. Visitors get a cached copy, and a scheduled job calls a refresh route so that a site nobody has visited for a while doesn't serve a stale calendar. In September that job was a GitHub Actions workflow with &lt;code&gt;cron: '*/5 * * * *'&lt;/code&gt;. It almost never ran every five minutes, it stopped completely for a day and a half because of a mistake of ours, and the Railway cron we replaced it with had problems of its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Eighty runs where there should have been thousands
&lt;/h2&gt;

&lt;p&gt;On 23 September we finally listed the workflow's scheduled runs with &lt;code&gt;gh run list --event schedule&lt;/code&gt;. Between 10 and 21 September there were 80 of them, against the 3,000-plus a five-minute cron implies. The gaps between consecutive runs ranged from 102 to 353 minutes, with a median of 190.&lt;/p&gt;

&lt;p&gt;GitHub's documentation does warn about this, in the section on the &lt;code&gt;schedule&lt;/code&gt; event: "The &lt;code&gt;schedule&lt;/code&gt; event can be delayed during periods of high loads of GitHub Actions workflow runs. High load times include the start of every hour. If the load is sufficiently high enough, some queued jobs may be dropped." We had read "delayed" as minutes.&lt;/p&gt;

&lt;p&gt;We felt it in the app. Until then, the first visitor to a quiet site simply got a calendar that could be hours old. That night we added a rule: if the cached copy is more than two hours old, make the visitor wait for a fresh one. With the schedule running every three hours, that wait became the normal path for quiet sites, and a slow feed could hold a request for more than ten seconds until it failed. The next day we capped the wait at 3.5 seconds, after which the visitor gets the old copy.&lt;/p&gt;

&lt;p&gt;We also moved the schedule off the top of the hour, to &lt;code&gt;2-57/5&lt;/code&gt;, which didn't help: when we measured again between 10 and 13 October, the workflow ran every three to eight hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  The heredoc that ended the YAML block
&lt;/h2&gt;

&lt;p&gt;For about a day and a half the schedule stopped completely, and that one was our fault.&lt;/p&gt;

&lt;p&gt;At 13:00 UTC on 21 September we pushed a change that computed a build's age with a few lines of Python inside the workflow's shell step. Here it is, simplified, inside a minimal workflow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;refresh&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;schedule&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;cron&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'*/5 * * * *'&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;refresh&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;stamp="2026-09-21T13:00:00Z"&lt;/span&gt;
          &lt;span class="s"&gt;age_days=$(python3 - "$stamp" &amp;lt;&amp;lt;'PY'&lt;/span&gt;
&lt;span class="s"&gt;import sys, datetime&lt;/span&gt;
&lt;span class="s"&gt;print(sys.argv[1])&lt;/span&gt;
&lt;span class="s"&gt;PY&lt;/span&gt;
&lt;span class="s"&gt;)&lt;/span&gt;
          &lt;span class="s"&gt;echo "$age_days"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A heredoc's closing &lt;code&gt;PY&lt;/code&gt; has to start at column 0 of the script bash runs, and we put it, along with the Python, at column 0 of the YAML file. But &lt;code&gt;run: |&lt;/code&gt; is a YAML block scalar, and a block scalar ends at the first line that's indented less than the block. The block ended just before &lt;code&gt;import sys&lt;/code&gt;, and YAML tried to parse the rest of the file as YAML, which it isn't. The whole workflow file became invalid. Twenty-five minutes later we pushed a second change that broke the same rule a different way: a quoted &lt;code&gt;python3 -c&lt;/code&gt; string whose &lt;code&gt;try:&lt;/code&gt; and &lt;code&gt;except&lt;/code&gt; lines started at column 0.&lt;/p&gt;

&lt;p&gt;From the outside nothing looked broken; scheduled refreshes simply stopped. The one visible symptom was an email after every push, saying that a run of &lt;code&gt;refresh.yml&lt;/code&gt; failed with "No jobs were run". That workflow had no &lt;code&gt;push&lt;/code&gt; trigger at all, so a push-event run with that name meant GitHub couldn't parse the file. We only connected those emails to the schedule when someone pointed at them.&lt;/p&gt;

&lt;p&gt;The last successful scheduled run was at 10:51 UTC on 21 September. The workflow's next run of any kind was a manual one after the fix, at 00:06 UTC on 23 September, about 37 hours later.&lt;/p&gt;

&lt;p&gt;You can reproduce the break without GitHub. Save the file above and parse it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ruby -ryaml -e &lt;span class="s1"&gt;'YAML.load_file(".github/workflows/refresh.yml")'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ruby's parser stops with "could not find expected ':' while scanning a simple key at line 12 column 1", which is the &lt;code&gt;import sys&lt;/code&gt; line. The rule that matters is that no line of a &lt;code&gt;run: |&lt;/code&gt; block sits to the left of the block. Indenting the heredoc along with everything else works, because YAML strips the common indentation before bash sees the script. We went the other way and put both pieces of Python in quoted &lt;code&gt;-c&lt;/code&gt; arguments, indented with the rest:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;stamp="2026-09-21T13:00:00Z"&lt;/span&gt;
          &lt;span class="s"&gt;age_days=$(python3 -c 'import sys, datetime&lt;/span&gt;
          &lt;span class="s"&gt;print(sys.argv[1])' "$stamp")&lt;/span&gt;
          &lt;span class="s"&gt;echo "$age_days"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python still receives its lines starting at column 0. Parsing the file with that Ruby one-liner is now on our checklist for workflow changes, though nothing enforces it yet; add &lt;code&gt;-Eutf-8:utf-8&lt;/code&gt; if the file has non-ASCII comments, or Ruby may refuse to read it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fixed, and still not running
&lt;/h2&gt;

&lt;p&gt;The fixed file parsed, and the manual run at 00:06 UTC worked. Half an hour later we pushed the file again with rewritten comments, and still no scheduled run came, though the API reported the workflow as &lt;code&gt;active&lt;/code&gt;. At 03:27 and 03:28 UTC we pushed it twice more with comment changes. The first scheduled run arrived at 04:38 UTC, and the rest of that day's runs came at 09:30, 14:19, 18:26, 21:37 and 23:55.&lt;/p&gt;

&lt;p&gt;We don't know whether those later pushes brought the schedule back or whether it was coming back anyway, since the one at 00:37 hadn't. We still touch the file after a fix because it's cheap, but we can't say it works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving to Railway, and the cron that never got set
&lt;/h2&gt;

&lt;p&gt;On 13 October we moved the job to a small Railway service that runs on a cron schedule, every 30 minutes, and kept the GitHub workflow as a backup. Our Shopify apps already ran on Railway, and we wrote about a different Railway surprise &lt;a href="https://dev.to/operix/x-railway-edge-is-not-where-your-railway-app-runs-we-told-users-singapore-the-container-was-in-57fm"&gt;earlier this month&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It ran once, at deploy time, and not at all overnight. We had put &lt;code&gt;cronSchedule&lt;/code&gt; in &lt;code&gt;railway.json&lt;/code&gt;, and &lt;code&gt;railway up&lt;/code&gt; hadn't applied it: the service's cron schedule read as empty. Setting it through Railway's public GraphQL API (&lt;code&gt;serviceInstanceUpdate&lt;/code&gt;) worked. Since then we check two things after any change, that the service reports a next cron run time and that a log line actually appears at that time, because the one run we had seen was just the deploy starting the service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Railway skips a run while the last one is still going
&lt;/h2&gt;

&lt;p&gt;On 9 November we moved the schedule to every 5 minutes, because the app's paid plan promises a 5-minute refresh. Runs at :00 and :30 refreshed every site, and the rest refreshed only the paid ones.&lt;/p&gt;

&lt;p&gt;Railway's documentation says what happens next: "if a previous execution is still running when the next scheduled execution is due, Railway will skip the new cron job." Our full pass covered 171 sites and took between 236 and 455 seconds. Over 30.4 hours of logs, 28 of the 61 full passes ran past five minutes, and 32 of the 61 runs due at :05 or :35 never started.&lt;/p&gt;

&lt;p&gt;The paid-only runs had their own problem. A paid site's cache lived exactly five minutes, the same as the interval. A run that arrived a few seconds early found every cache still fresh and refreshed nothing, which happened in 8 of 32 paid-site runs over three and a half hours.&lt;/p&gt;

&lt;p&gt;The fix, deployed on 10 November, makes every run short. Each run does the paid sites first, then one sixth of all sites. A site's slice comes from a hash of its ID, so it doesn't move when the site list changes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;sliceIndex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;siteId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mh"&gt;0x811c9dc5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                       &lt;span class="c1"&gt;// FNV-1a, 32 bits&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;siteId&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;^=&lt;/span&gt; &lt;span class="n"&gt;siteId&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;charCodeAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;imul&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x01000193&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;// the cron picks slice Math.floor(utcMinutes / 5) % 6, so every slice comes back each 30 minutes&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The scheduled path also treats a cache as stale two minutes before it expires, so an early run still refreshes. Every site is visited every 30 minutes as before, and paid sites every five. From 09:55 UTC on 10 November to 00:55 UTC the next morning there were 181 five-minute slots and none of them was empty. The median run took 87 seconds and the longest 140.&lt;/p&gt;

&lt;h2&gt;
  
  
  Small print we've collected
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;railway logs -n 20000&lt;/code&gt; returns zero lines and puts "Error in limit - Invalid input" on stderr. If your script throws stderr away, an empty log looks like a quiet night. &lt;code&gt;-n 5000&lt;/code&gt; works.&lt;/li&gt;
&lt;li&gt;Railway's docs also say it "does not guarantee execution times to the minute", so don't build anything that needs :05 exactly.&lt;/li&gt;
&lt;li&gt;On 8 November we noticed a warning in our Railway logs that &lt;code&gt;railway.json&lt;/code&gt; config files stop working on 1 December 2026. If your cron schedule lives only in that file, move it into the service settings before then.&lt;/li&gt;
&lt;li&gt;We don't know whether GitHub delays every repository's schedules the same way. Ours was a private repository with a single workflow; a public one, or one running many workflows, may see something else. If you depend on &lt;code&gt;*/5&lt;/code&gt;, run &lt;code&gt;gh run list --event schedule&lt;/code&gt; for a week and look at the gaps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of this exists to keep one Wix app's calendars current, &lt;a href="https://www.wix.com/app-market/a5d62bae-8405-4635-a985-8743d9ad50d7?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=github-actions-cron-yaml-heredoc" rel="noopener noreferrer"&gt;Google Calendar Events Sync&lt;/a&gt;. Its cron log lines now go into a report we read each morning.&lt;/p&gt;

</description>
      <category>githubactions</category>
      <category>devops</category>
      <category>cron</category>
      <category>railway</category>
    </item>
    <item>
      <title>How to add a Google Calendar to your Wix website: Google's free embed, or an app that keeps it in sync</title>
      <dc:creator>operix</dc:creator>
      <pubDate>Mon, 16 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/operix/how-to-add-a-google-calendar-to-your-wix-website-googles-free-embed-or-an-app-that-keeps-it-in-4f1a</link>
      <guid>https://dev.to/operix/how-to-add-a-google-calendar-to-your-wix-website-googles-free-embed-or-an-app-that-keeps-it-in-4f1a</guid>
      <description>&lt;p&gt;&lt;em&gt;By a backend engineer with ten years of experience, building small Wix and Shopify apps as operix.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;There are two ways to put a Google Calendar on a Wix site. You can paste Google's own embed code into a Wix HTML element, which is free and shows Google's calendar inside a frame. Or you can add a Wix app such as Google Calendar Events Sync, which reads your Google Calendar and draws the events as part of your page, keeping them in sync. This is written for whoever looks after a church, school or club website and already keeps the schedule in Google Calendar.&lt;/p&gt;

&lt;p&gt;You should know up front that we make Google Calendar Events Sync, and the second half of this guide uses it. The screens come from our own test site on 10 November 2026. Menus get renamed, so if something here doesn't match what you see, trust your screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pick the calendar the public is allowed to see
&lt;/h2&gt;

&lt;p&gt;Both routes show whatever is in the calendar you point them at. For a church, that usually rules out the staff calendar, the one with the pastor's dentist appointment in it. If you haven't done so already, create a separate calendar in Google for public events (services, youth group, choir rehearsal, the bake sale) and keep only those in it. The location and description go public along with each event, so leave out home addresses for small groups and anyone's personal phone number.&lt;/p&gt;

&lt;p&gt;Google's embed and the simplest app setup both need that calendar to be public. &lt;a href="https://support.google.com/calendar/answer/37083" rel="noopener noreferrer"&gt;Google's help page&lt;/a&gt; gives the steps: open Google Calendar on a computer, click the gear and then Settings, pick the calendar under "Settings for my calendars", and under "Access permissions for events" tick "Make available to public". The same page notes that a public calendar on a searchable website can turn up in search results. On a school or church Google Workspace account an administrator may have restricted sharing, so if you can't tick the box, ask them. We haven't tried this on Workspace.&lt;/p&gt;

&lt;p&gt;If the calendar has to stay private, there's an option for that under the app route below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route one: Google's embed code in a Wix HTML element
&lt;/h2&gt;

&lt;p&gt;In Google Calendar's settings for that calendar, click "Integrate calendar". Under "Embed code" there's a Customize button, where you choose what the calendar shows and how large it is; &lt;a href="https://support.google.com/calendar/answer/41207" rel="noopener noreferrer"&gt;Google asks&lt;/a&gt; for a width and height of at least 500 each. Copy the code.&lt;/p&gt;

&lt;p&gt;Then, in the Wix editor, go to Add Elements, Embed Code, Popular Embeds and choose Embed HTML. Click the new element, click Enter Code, paste, and click Apply. Those names come from Wix's help article &lt;a href="https://support.wix.com/en/article/wix-editor-embedding-a-site-or-a-widget" rel="noopener noreferrer"&gt;"Wix Editor: Embedding a Site or a Widget"&lt;/a&gt;, read on 10 November 2026.&lt;/p&gt;

&lt;p&gt;It costs nothing, and for a lot of sites it's enough. You get Google's calendar page in a frame, loaded from Google each time, so it shouldn't lag behind your edits the way a copy can. The same Wix article is plain about the trade-off: these embeds are iframes, and embedded content "won't be responsive" even when the original is. The frame keeps Google's look instead of your site's fonts and colors, and you set its size by hand.&lt;/p&gt;

&lt;p&gt;We didn't build this route for this guide, so we can't show it or say how it looks on a phone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route two: a Wix app that syncs your Google Calendar into the page
&lt;/h2&gt;

&lt;p&gt;We walked through this route while writing, and nothing in it needs the paid plan. Search for Google Calendar Events Sync in the Wix App Market and add it to your site. Its page opens in your Wix dashboard, and later you'll find it under Apps. The left side of that page offers other ways to start; for a Google Calendar you want the card on the right, "Connect a calendar":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Under "Where is the calendar?" leave "Google Calendar — public calendar" selected.&lt;/li&gt;
&lt;li&gt;Paste the Calendar ID. It's in Google Calendar's settings for that calendar, under "Integrate calendar", and it looks like an email address. For a calendar you created it's a long string that usually ends in &lt;code&gt;@group.calendar.google.com&lt;/code&gt;. If it's your own email address, you've opened your main calendar; go back and pick the public one, because anyone who knows that address could read a main calendar made public.&lt;/li&gt;
&lt;li&gt;Type the name visitors should see and pick a color. Click Check to see how many events it finds, then click Connect.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fovbf9nl3zc9upvznlnit.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fovbf9nl3zc9upvznlnit.png" alt="The app's &amp;quot;Connect a calendar&amp;quot; card with &amp;quot;Google Calendar — public calendar&amp;quot; selected, a Calendar ID pasted in, the name &amp;quot;US Holidays&amp;quot;, and the Check result &amp;quot;Found 29 events in the next 12 months&amp;quot;" width="800" height="1398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can rehearse this before touching your own calendar. Google publishes its US holidays calendar under the ID &lt;code&gt;en.usa#holiday@group.v.calendar.google.com&lt;/code&gt;, and that's what we pasted. Check found 29 events. We connected it twice that day, and both times it showed up in the list within 20 seconds of clicking Connect, with 36 events, because the list also counts recent past holidays and a few more weeks ahead. When you're done, click Remove on that row before you connect your own calendar, because a second calendar on the free plan is saved switched off. The app's own sample calendar is the exception: connecting your calendar replaced it by itself.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F368xufjze7r9d8l94fyc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F368xufjze7r9d8l94fyc.png" alt="The &amp;quot;Connected calendars&amp;quot; list on the Free plan: US Holidays, Google, 36 events, synced 11/10/2026 1:08:35 PM" width="800" height="250"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You don't sign in to Google from the app, and it doesn't ask for access to your Google account. It reads the calendar's public feed, the same one anyone with the ID could open.&lt;/p&gt;

&lt;h3&gt;
  
  
  Showing a private Google Calendar with its secret iCal address
&lt;/h3&gt;

&lt;p&gt;Choose "Google Calendar — private (secret address)" in the same dropdown. In Google's settings, under "Integrate calendar", copy "Secret address in iCal format" and paste that instead of the ID. The calendar stays private in Google. The app stores the address encrypted, shows it masked in the dashboard and doesn't send it to visitors' browsers.&lt;/p&gt;

&lt;p&gt;The events still show on your site, though, so keep only public events in that calendar as well.&lt;/p&gt;

&lt;h3&gt;
  
  
  Put it on a page and publish
&lt;/h3&gt;

&lt;p&gt;The dashboard's next step says to open the editor and add the widget with the + (Add) button. Look at your home page first. On two fresh installs on our test sites, on 27 October and 3 November 2026, the widget ended up on the home page by itself the first time we opened the editor. If you want it on a different page, move it there, then click Publish in the top right of the editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnehwfwjxzp2o9m9pnqy4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnehwfwjxzp2o9m9pnqy4.png" alt="Month view of the calendar on a published page: November 2026 with Election Day, Veterans Day, Thanksgiving Day and Black Friday on their dates" width="800" height="507"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's the published page of our test site, loaded in a brand-new browser less than a minute after we clicked Connect. At phone width, the month grid turns into a list:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fctv84fmio3kxitbkn3wj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fctv84fmio3kxitbkn3wj.png" alt="The same calendar at phone width, shown as a list of upcoming events with dates as headings" width="716" height="1520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How long a change in Google takes to reach the site
&lt;/h2&gt;

&lt;p&gt;This delay belongs to the app route; Google's embed has no copy to refresh. On the free plan the app re-reads your calendar every hour. So if you move Wednesday's rehearsal in Google at 9:00, a free-plan site can go on showing the old time until about 10:00, unless you press Sync now in the app's dashboard. The paid plan re-reads every 5 minutes.&lt;/p&gt;

&lt;p&gt;On a quiet site the refresh waits for a visitor, so the first person after a long gap may see a copy up to two hours old. Past two hours, the page waits up to about three and a half seconds for a fresh copy and falls back to the old one if Google is slower. We haven't timed this on a site left unvisited for a day, so treat "within the hour" as the usual case, not a promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the free plan covers and where it stops
&lt;/h2&gt;

&lt;p&gt;Free gives you one calendar, the next 100 upcoming events, the month and list views, an hourly refresh and no watermark. For one public calendar with a few events a week, that covers it. A church with a service every day reaches 100 upcoming events in about three months, and events past the hundredth won't show on Free until earlier ones have passed.&lt;/p&gt;

&lt;p&gt;Connect a second calendar on Free and it's saved but switched off, labeled "Waiting for Pro". Pro is $4.99 a month, or $3.99 a month billed yearly, after a 14-day free trial. It allows up to ten calendars, each with its own color and a filter chip visitors can tap, and it adds week and day views, a search box and the 5-minute refresh. With this app, you'd need it if, say, worship, youth and room bookings live in separate Google calendars and you want visitors to filter between them.&lt;/p&gt;

&lt;h2&gt;
  
  
  If the calendar comes up empty
&lt;/h2&gt;

&lt;p&gt;What the app's messages mean:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"This Google calendar is not public." Either the calendar isn't shared publicly or the ID has a typo; Google answers both the same way. Check the ID, then make the calendar public in Google or switch to the secret address.&lt;/li&gt;
&lt;li&gt;"This is a secret iCal address." You pasted the secret address under the public option. Change the dropdown and paste it again.&lt;/li&gt;
&lt;li&gt;"The feed answered but contained no events." The calendar is reachable and empty, or its events aren't public.&lt;/li&gt;
&lt;li&gt;"This needs the CMS app on your site (free)." The app keeps your calendar list in your site's CMS. Add Wix's CMS app from the App Market and reload.&lt;/li&gt;
&lt;li&gt;An event is missing though the rest are there. Only events from about a month back to twelve months ahead are shown, and on Free only the next 100.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One setting we haven't tested is Google's "See only free/busy (hide details)". We don't know what a visitor would see for a calendar shared that way, so share full event details on the calendar you connect.&lt;/p&gt;

&lt;p&gt;If route two is the one you want, the listing is here: &lt;a href="https://www.wix.com/app-market/a5d62bae-8405-4635-a985-8743d9ad50d7?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=church-google-calendar-wix" rel="noopener noreferrer"&gt;Google Calendar Events Sync on the Wix App Market&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>wix</category>
      <category>googlecalendar</category>
      <category>tutorial</category>
      <category>nonprofit</category>
    </item>
    <item>
      <title>Rotating a Shopify app secret: generate, revoke, pull, deploy, and why the obvious order doesn't work</title>
      <dc:creator>operix</dc:creator>
      <pubDate>Thu, 12 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/operix/rotating-a-shopify-app-secret-generate-revoke-pull-deploy-and-why-the-obvious-order-doesnt-1525</link>
      <guid>https://dev.to/operix/rotating-a-shopify-app-secret-generate-revoke-pull-deploy-and-why-the-obvious-order-doesnt-1525</guid>
      <description>&lt;p&gt;&lt;em&gt;Shopify Dev Dashboard and CLI, measured on 2026-09-16, 2026-09-30 and 2026-10-22 on our own apps, hosted on Railway. No secret value appears in this post, and the point of most of it is to keep it that way in yours too.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We've rotated client secrets three times this autumn. Twice because we leaked one ourselves, once because our hosting provider had an incident and told everyone to. The order you'd guess, make the new secret, deploy it, retire the old one, doesn't work with the Shopify CLI.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we leaked our own secret, twice
&lt;/h2&gt;

&lt;p&gt;On 2026-09-16, while reading the app's Credentials page, a browser-automation step dumped the &lt;code&gt;value&lt;/code&gt; of every &lt;code&gt;input&lt;/code&gt; and &lt;code&gt;textarea&lt;/code&gt; on the page. That page holds the client secret as the plain value of an input. The secret went into a log file, and from there the only honest move was to rotate. On 2026-09-30 we did the same thing on the settings page of a newer app, Upload Box.&lt;/p&gt;

&lt;p&gt;The rule since then: on any page that shows credentials, screenshots and clicks only, never a script that reads the DOM. When a value is needed, the CLI writes it to a file and a shell variable carries it from there; nothing passes through a screen or a clipboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "generate, deploy, revoke" doesn't work
&lt;/h2&gt;

&lt;p&gt;Dev Dashboard → your app → Settings → Credentials → Rotate → Generate new secret. You now have Old and New side by side, and the dialog says: &lt;em&gt;Webhooks won't use the new secret until you revoke the old one.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The part the dialog doesn't say: &lt;code&gt;shopify app env pull&lt;/code&gt; keeps returning the old secret until you revoke. So there's no CLI path to fetch the new value, put it on the server, and only then revoke. The order becomes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Rotate → Generate new secret.&lt;/li&gt;
&lt;li&gt;Revoke the old one. The confirmation says "ending in XXXX"; we check those four characters against the tail of the value currently in &lt;code&gt;.env&lt;/code&gt; before clicking.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;SHOPIFY_FLAG_ENV_FILE=/tmp/secret.env shopify app env pull&lt;/code&gt;. The &lt;code&gt;--env-file&lt;/code&gt; flag got swallowed by &lt;code&gt;node&lt;/code&gt; in our setup, so we pass it as an environment variable.&lt;/li&gt;
&lt;li&gt;Put it on the host from the file, via shell expansion, never by typing: &lt;code&gt;railway variables --set "SHOPIFY_API_SECRET=$(sed -n 's/^SHOPIFY_API_SECRET=//p' /tmp/secret.env)"&lt;/code&gt;. On Railway a variable change redeploys on its own.&lt;/li&gt;
&lt;li&gt;Update the local &lt;code&gt;.env&lt;/code&gt; the same way and delete the scratch file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Between steps 2 and 4 there are a few minutes where Shopify signs webhooks with the new secret and your server verifies with the old one. Shopify retries failed deliveries for 48 hours, so nothing is lost, provided your deploy actually goes out that day. More on that below. The steps now live in a script that pulls through the scratch file, refuses to continue if the pulled value equals what the host already holds (meaning the revoke hasn't happened), and prints variable names only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Proving it with three signatures
&lt;/h2&gt;

&lt;p&gt;A green deploy isn't proof. We check the swap with a side-effect-free webhook, &lt;code&gt;customers/data_request&lt;/code&gt;, on a made-up payload, signed three ways:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Key used to sign&lt;/th&gt;
&lt;th&gt;Expected&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;random garbage&lt;/td&gt;
&lt;td&gt;401&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;the old secret&lt;/td&gt;
&lt;td&gt;401&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;the new secret&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first row shows the verifier isn't a no-op, the second that the old secret is dead on your side, the third that the new one is live, and only all three together show the rotation happened. The signing script reads the key from a file so it never lands in &lt;code&gt;argv&lt;/code&gt;, shell history or &lt;code&gt;ps&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# sign.py &amp;lt;key-file&amp;gt; &amp;lt;body-file&amp;gt;  -&amp;gt; prints the X-Shopify-Hmac-Sha256 value
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;base64&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;rb&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;rb&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base64&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;b64encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;()).&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The 502 that followed, and whose fault it was
&lt;/h2&gt;

&lt;p&gt;On 2026-09-30, minutes after rotating Upload Box, the first storefront upload failed with a 502 and the server log said "Missing access token". Opening the app in the admin once fixed it.&lt;/p&gt;

&lt;p&gt;The chain, from the logs the same evening: revoking the old secret invalidated the offline access token that had been issued under it. The next Admin API call got a 401. The Shopify library did the right thing: it cleared the stored token and threw a &lt;code&gt;Response&lt;/code&gt; meant to send App Bridge through a token exchange. Our loader had &lt;code&gt;try { admin.graphql(...) } catch {}&lt;/code&gt; around that call, which swallowed the &lt;code&gt;Response&lt;/code&gt;. The session stayed tokenless, and the App Proxy route, which has no exchange path of its own, had nothing to use.&lt;/p&gt;

&lt;p&gt;The fix is one line at the top of each such &lt;code&gt;catch&lt;/code&gt;, &lt;code&gt;if (e instanceof Response) throw e;&lt;/code&gt;, plus a test that fails if someone removes it. Three sibling apps had the same pattern; one was fixed within a week, the other two on 20 October.&lt;/p&gt;

&lt;p&gt;Shopify's docs say tokens are bound to the secret that issued them and die with it. The revoke dialog had warned about exactly this and we clicked through it; we only read the docs properly three weeks later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Doing it without a gap when real stores are installed
&lt;/h2&gt;

&lt;p&gt;On 2026-10-21 Railway disclosed a security incident around stored environment variables and recommended rotating them. The next day we set out to rotate the secrets of all eight apps. Five had no external stores, so the order above was fine and they were done that day. Three did (five, two and two stores), and for those a few minutes of broken webhooks plus every store's offline token dying at revoke wasn't acceptable.&lt;/p&gt;

&lt;p&gt;Our library, &lt;code&gt;@shopify/shopify-api&lt;/code&gt; 15, takes exactly one secret. With a zero-store app, on 2026-10-22 at 14:32, we checked what Shopify does during the overlap: webhooks, admin session tokens and App Proxy signatures all kept using the old secret while both existed. That gave us a four-step order (tested in parts, not yet run end to end):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Rotate → Generate new secret, and leave the old one in place. Store the new value in a second variable, &lt;code&gt;SHOPIFY_API_SECRET_NEW&lt;/code&gt;. The main &lt;code&gt;SHOPIFY_API_SECRET&lt;/code&gt; stays old.&lt;/li&gt;
&lt;li&gt;Deploy. On boot, if &lt;code&gt;_NEW&lt;/code&gt; is set, a one-time script walks every stored offline session that has a refresh token, refreshes it through a second library instance built with the new secret, and saves the result under the same session id. Online sessions and sessions without a refresh token are skipped, and a response for a different shop or an empty token isn't saved. The log line is counts only, for example &lt;code&gt;[repin] {"total":7,"ok":5,"failed":0,"skipped":2,"expired":0}&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Revoke the old secret.&lt;/li&gt;
&lt;li&gt;Deploy again with &lt;code&gt;SHOPIFY_API_SECRET&lt;/code&gt; set to the new value and &lt;code&gt;_NEW&lt;/code&gt; removed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Steps 2 to 4 have to happen within about ten minutes. The tokens refreshed in step 2 live on a server that's still configured with the old secret. Roughly an hour later that server would refresh them again under the old secret, and a merchant opening the app in between triggers a token exchange under the old secret, which invalidates the other refresh token for that shop. Either one quietly undoes step 2. After step 4 we call the Admin API once per offline session and count 401s; zero is the target, and a non-zero shop recovers the next time its merchant opens the app.&lt;/p&gt;

&lt;p&gt;A crash in the middle of step 2 is safe, since Shopify keeps the old refresh token valid until the new one is actually used; a failed save leaves a working row behind.&lt;/p&gt;

&lt;h2&gt;
  
  
  Don't revoke on a day you can't deploy
&lt;/h2&gt;

&lt;p&gt;The same 10-22, Railway had paused builds. For the five apps we revoked anyway, reasoning that with no external stores nobody was affected. One of them had picked up an external store by then, and its order webhooks sat at 401 overnight until the redeploy went through on 2026-10-23 at 06:54; Shopify retried and they arrived. So a real store was affected, just not visibly; with more stores it would've been a day of dead webhooks. The revoke now waits until we've seen a deploy succeed that day.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open questions after three rotations
&lt;/h2&gt;

&lt;p&gt;We don't know whether a refresh token issued under the old secret can still be refreshed after the revoke; the repin step makes it irrelevant for us. We haven't timed how long a revoke takes to reach webhook signing either. The docs say up to about an hour; we've never measured it, since the 401s were already in the logs by the time we looked. And the four-step order has been exercised piece by piece, not yet on an app with stores installed.&lt;/p&gt;

&lt;p&gt;We'll be doing this again, probably after the next careless log line. Of everything above, we'd keep the three signatures if we had to drop the rest; that check alone shows the rotation happened rather than that the buttons were clicked.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by a backend engineer with ten years of experience, building small Wix and Shopify apps as operix.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Upload Box, the app behind the 502 above, is on the Shopify App Store: &lt;a href="https://apps.shopify.com/upload-box?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=shopify-app-secret-rotation-order" rel="noopener noreferrer"&gt;https://apps.shopify.com/upload-box?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=shopify-app-secret-rotation-order&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More from the same notebook: &lt;a href="https://dev.to/operix/your-wix-apps-storefront-widget-is-pinned-to-the-deployment-that-rendered-the-page-and-that-5bf5"&gt;Your Wix widget loads from whichever deployment rendered the page, and that render can be cached for 35 hours&lt;/a&gt; · &lt;a href="https://dev.to/operix/npx-wix-release-does-not-build-how-we-shipped-yesterdays-dist-by-mistake-4lpg"&gt;&lt;code&gt;npx wix release&lt;/code&gt; does not build&lt;/a&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>security</category>
      <category>devops</category>
    </item>
    <item>
      <title>`x-railway-edge` is not where your Railway app runs: we told users Singapore, the container was in Amsterdam</title>
      <dc:creator>operix</dc:creator>
      <pubDate>Mon, 09 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/operix/x-railway-edge-is-not-where-your-railway-app-runs-we-told-users-singapore-the-container-was-in-57fm</link>
      <guid>https://dev.to/operix/x-railway-edge-is-not-where-your-railway-app-runs-we-told-users-singapore-the-container-was-in-57fm</guid>
      <description>&lt;p&gt;&lt;em&gt;Railway, measured on 2026-09-16 and 2026-09-17 on two of our Shopify apps; the fix is now in all eight of them. Railway's headers, variables and region codes may change after this.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Our countdown app's privacy policy said customer data was processed in Singapore, outside the European Economic Area. The container was in Amsterdam. Nobody had lied; someone had read the wrong header, turned it into a constant on 28 August, and for nineteen days the constant looked like a fact.&lt;/p&gt;

&lt;h2&gt;
  
  
  The header that fooled us
&lt;/h2&gt;

&lt;p&gt;Every response from a Railway service carries an &lt;code&gt;x-railway-edge&lt;/code&gt; header. From Korea, ours said &lt;code&gt;sin1&lt;/code&gt;. The policy's source file even documented its own evidence: a comment next to &lt;code&gt;HOSTING_REGION = "Singapore"&lt;/code&gt; saying the value came from &lt;code&gt;x-railway-edge: sin1&lt;/code&gt;. The sentence about the EEA had then been derived from that constant.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sin1&lt;/code&gt; is the edge point of presence nearest the &lt;em&gt;requester&lt;/em&gt;. On 2026-09-16 we checked the sibling app on the same account, which we knew ran in the United States, and it answered &lt;code&gt;sin1&lt;/code&gt; too. Both services we checked, one in Europe and one in the US, said &lt;code&gt;sin1&lt;/code&gt; to a request from Korea. The header describes the network path on your side of the request, not the machine on the other side.&lt;/p&gt;

&lt;h2&gt;
  
  
  Asking the container instead
&lt;/h2&gt;

&lt;p&gt;Railway sets &lt;code&gt;RAILWAY_REPLICA_REGION&lt;/code&gt; in the environment of the running container. Two things we tried first didn't show it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;railway variables&lt;/code&gt; lists the variables you configured on the service. Runtime-injected values aren't in that list.&lt;/li&gt;
&lt;li&gt;Railway's GraphQL API answered 403 with the CLI's stored token. A month later the same token worked against the public v2 endpoint for a different call, so the 403 was probably about the endpoint rather than the token; we haven't gone back to re-check it for the region.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So we made the app report on itself. The privacy route adds a response header with the raw value, and the body reads the same variable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// headers of the /privacy response&lt;/span&gt;
&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;X-Steady-Region&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;RAILWAY_REPLICA_REGION&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;unknown&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sI&lt;/span&gt; https://&amp;lt;your-app&amp;gt;.up.railway.app/privacy | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-iE&lt;/span&gt; &lt;span class="s1"&gt;'^x-[a-z]+-region'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The answer on 2026-09-16 was &lt;code&gt;ams&lt;/code&gt;. Amsterdam, inside the EEA, under a policy stating the opposite.&lt;/p&gt;

&lt;p&gt;The next day we ran the same check on our search app: &lt;code&gt;us-east4-eqdc4a&lt;/code&gt;, Virginia. That one matched its deploy notes, because the notes recorded a deliberate move from EU West (Amsterdam) to US East on 2026-09-15. The two apps had the same host, the same account and the same author. What separated them was the kind of evidence behind the sentence: one had a document recording a decision, the other had a header somebody glanced at.&lt;/p&gt;

&lt;h2&gt;
  
  
  Region codes come in two spellings
&lt;/h2&gt;

&lt;p&gt;The dashboard shows GCP-style names like &lt;code&gt;europe-west4-drams3a&lt;/code&gt;. The runtime variable gave us &lt;code&gt;ams&lt;/code&gt;. We don't know when Railway uses which form, or whether it will stay that way, so the lookup table holds both and matching is longest-prefix: &lt;code&gt;us-east4-eqdc4a&lt;/code&gt; has to beat &lt;code&gt;us-east4&lt;/code&gt;, and a future &lt;code&gt;ams-something&lt;/code&gt; should still map to the Netherlands.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;REGIONS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="c1"&gt;// prefix, place, inEEA, inUK&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;ams&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;the Netherlands&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;sin&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Singapore&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;iad&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;the United States&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;pdx&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;the United States&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;us-east4&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;the United States&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;europe-west2&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;the United Kingdom&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;europe-west4&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;the Netherlands&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="c1"&gt;// ... the other GCP-style names in our table&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="kd"&gt;as const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the value is missing or not in the table, the policy names no country at all and the server logs an error. The module's own comment puts it this way: a policy that names no country is thin, and one that names the wrong country is false. We'd just spent nineteen days on the false side.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the fix looks like in code
&lt;/h2&gt;

&lt;p&gt;One module turns the raw code into &lt;code&gt;{ place, inEEA, inUK, known }&lt;/code&gt;. The transfer sentence ("inside the European Economic Area and outside the United Kingdom") is computed from that same object, so the country and the EEA claim can't drift apart the way the old constant and its derived sentence did.&lt;/p&gt;

&lt;p&gt;Most of the tests pin the shape rather than particular values, though one does pin &lt;code&gt;ams&lt;/code&gt; to the Netherlands and the EEA, because that was the mistake. Two assert that the privacy route reads the region from the environment and contains no hand-written country or transfer claim. Another asserts the policy talks about hosting in exactly one place. One more feeds unknown codes and expects no country and no transfer sentence, and a last one checks the route source still contains the &lt;code&gt;console.error&lt;/code&gt; for that case, since an unknown region should be loud rather than quietly skipped.&lt;/p&gt;

&lt;p&gt;By 18 October the same module and header were in seven of our Railway-hosted apps, and the eighth was born with it. Five of them carry a header name copied from the first app we cloned it into, so they answer &lt;code&gt;X-QB-Region&lt;/code&gt; instead of something with their own initials. The header is in the code and we haven't bothered to rename it. We've only curl-checked the live value on the first two apps, not on all eight.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking your own service in three curls
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;curl -sI&lt;/code&gt; your app from two places, say a laptop and a VPS in another country, and compare &lt;code&gt;x-railway-edge&lt;/code&gt;. Those two answers should differ for the same service; that difference is what the step shows.&lt;/li&gt;
&lt;li&gt;Add a response header that echoes &lt;code&gt;RAILWAY_REPLICA_REGION&lt;/code&gt; on a harmless route. Deploy. &lt;code&gt;curl -sI&lt;/code&gt; again.&lt;/li&gt;
&lt;li&gt;Compare with Regions &amp;amp; Replicas in the dashboard. Expect the same place in a different spelling.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If step 2 prints &lt;code&gt;unknown&lt;/code&gt;, the variable isn't reaching your process, and that's worth knowing before a policy says anything about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving the region, since you'll probably want to
&lt;/h2&gt;

&lt;p&gt;Two days before any of this, on 2026-09-15, we had moved the search app from Amsterdam to US East from the Railway dashboard; the 09-17 check is what confirmed it had landed. The reasoning behind the move, and what happened:&lt;/p&gt;

&lt;p&gt;Our census of Shopify App Store reviewers put the United States at 35%, the United Kingdom at 9.4%, Australia 5.3%, Canada 4.6% and Germany 4.2%. North America is around 40% of that audience and the UK plus Germany around 14%. With a single region, US East is the better compromise, and it's closer to Europe than US West would be.&lt;/p&gt;

&lt;p&gt;Railway moves a service in place from Regions &amp;amp; Replicas. With a volume attached it warns about downtime while the volume's contents move. The data did follow: after the move, the migration step reported nothing pending and all 17 indexed items were still there.&lt;/p&gt;

&lt;p&gt;Two things we'd underline. The app and its database must move together; an app in Virginia querying Postgres in Amsterdam would cross the Atlantic on every search. And right after the move, search was 236 ms slower than baseline. That was a cold Postgres cache: after a few dozen queries it was back to +7 ms, and the same thing happens after every redeploy.&lt;/p&gt;

&lt;p&gt;We moved while we had no paying stores; after that, the same move means downtime on a merchant's shop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Loose ends
&lt;/h2&gt;

&lt;p&gt;We don't know the full set of short codes Railway can return; the table has the short codes we've seen plus the GCP-style names, and anything else resolves to "unknown" on purpose. We also haven't checked whether &lt;code&gt;x-railway-edge&lt;/code&gt; ever happens to equal the compute region when the requester is nearby. Even if it did, it would still be the wrong thing to quote in a legal page, since it would change with the next requester.&lt;/p&gt;

&lt;p&gt;What we'd want behind any sentence in a legal page that names a place is something the running process said about itself, with a date on it, that anyone can re-read with one &lt;code&gt;curl&lt;/code&gt;. The edge header was never that, and we'd been quoting it for nineteen days.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by a backend engineer with ten years of experience, building small Wix and Shopify apps as operix.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The countdown app whose policy got this wrong, and now reads the region at run time, is on the Shopify App Store: &lt;a href="https://apps.shopify.com/steady-countdown?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=railway-edge-header-is-not-your-region" rel="noopener noreferrer"&gt;https://apps.shopify.com/steady-countdown?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=railway-edge-header-is-not-your-region&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More from the same notebook: &lt;a href="https://dev.to/operix/your-wix-apps-storefront-widget-is-pinned-to-the-deployment-that-rendered-the-page-and-that-5bf5"&gt;Your Wix widget loads from whichever deployment rendered the page, and that render can be cached for 35 hours&lt;/a&gt; · &lt;a href="https://dev.to/operix/npx-wix-release-does-not-build-how-we-shipped-yesterdays-dist-by-mistake-4lpg"&gt;&lt;code&gt;npx wix release&lt;/code&gt; does not build&lt;/a&gt;&lt;/p&gt;

</description>
      <category>railway</category>
      <category>devops</category>
      <category>privacy</category>
      <category>shopify</category>
    </item>
    <item>
      <title>`npx wix release` does not build: how we shipped yesterday's `dist/` by mistake</title>
      <dc:creator>operix</dc:creator>
      <pubDate>Fri, 06 Nov 2026 01:08:43 +0000</pubDate>
      <link>https://dev.to/operix/npx-wix-release-does-not-build-how-we-shipped-yesterdays-dist-by-mistake-4lpg</link>
      <guid>https://dev.to/operix/npx-wix-release-does-not-build-how-we-shipped-yesterdays-dist-by-mistake-4lpg</guid>
      <description>&lt;p&gt;&lt;em&gt;Wix CLI, September to November 2026, measured on three of our own apps. CLI behaviour may change.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx wix release&lt;/code&gt; uploads whatever is in &lt;code&gt;dist/&lt;/code&gt; and creates a version. It doesn't run your build. If that sentence is obvious to you, the rest of this post is about how to prove what actually went live, which turned out to be less obvious than it sounds.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;On 2026-09-19 we fixed a dashboard bug in our calendar app, ran the test suite (green, type check included), and released:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx wix release -t minor -c "..."
...
Uploaded successfully
Preview created
Version 2.17.0 was created
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is no build step in that log. We didn't notice. We opened the dashboard to confirm the fix and saw the old behaviour.&lt;/p&gt;

&lt;p&gt;To rule out a cache, we downloaded the bundle from the new deployment host and compared it with the local &lt;code&gt;dist/&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cmp /tmp/live-wrapper.js dist/&amp;lt;path&amp;gt;/wrapper.CeNtilzv.js &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo &lt;/span&gt;identical
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Identical, byte for byte. The local &lt;code&gt;dist/&lt;/code&gt; was from the previous evening at 20:22, before the fix. &lt;code&gt;npm run build&lt;/code&gt; changed the chunk hash from &lt;code&gt;wrapper.CeNtilzv.js&lt;/code&gt; to &lt;code&gt;wrapper.5MoEAcz1.js&lt;/code&gt;, and version 2.18.0 carried the fix. We burned a version number, no merchant was affected, and we've kept one rule since: test, build, release, in that order.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it is easy to miss
&lt;/h2&gt;

&lt;p&gt;The release output looks complete. "Uploaded successfully" reads like "built and uploaded". And a stale &lt;code&gt;dist/&lt;/code&gt; is a perfectly valid artifact: it uploads fine, the version is created, the dashboard loads. Nothing fails. The only symptom is that your change is not there, and the first explanation that comes to mind is a cache.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to prove what is live
&lt;/h2&gt;

&lt;p&gt;We nearly fooled ourselves twice while checking 2.17.0, so here is the checklist we use now.&lt;/p&gt;

&lt;p&gt;Step 1, find the current deployment host. Every release gets a new host, &lt;code&gt;&amp;lt;prefix&amp;gt;-&amp;lt;app-slug&amp;gt;.wix-host.com&lt;/code&gt;. The dashboard runs on the latest deployment the moment the release completes, so the first segment of the dashboard iframe's hostname is the current prefix. Old hosts stay online and keep answering 200 for their old assets, so measuring against an old prefix will say "nothing changed" for ever. Our first attempt took two prefixes from &lt;code&gt;.wix/debug.log&lt;/code&gt;. Both were dead and returned 500 for everything.&lt;/p&gt;

&lt;p&gt;Step 2, use a control group. On the host you believe is current, request three things: a path that does not exist, the old bundle filename, and the new bundle filename.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Request on the current host&lt;/th&gt;
&lt;th&gt;Expected&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;a path that does not exist&lt;/td&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;old chunk &lt;code&gt;wrapper.CeNtilzv.js&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;new chunk &lt;code&gt;wrapper.5MoEAcz1.js&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;200&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If all three are 500, your host is wrong, not your release. Without that first row, a 500 for the old bundle looks like proof the new code is live. It isn't, and we were one step from writing that down.&lt;/p&gt;

&lt;p&gt;Step 3, don't &lt;code&gt;grep -c&lt;/code&gt; a minified bundle. It is one line, so the count is 0 or 1. We read a "1" as "the new string is in there". &lt;code&gt;grep -o '&amp;lt;string&amp;gt;' bundle.js | wc -l&lt;/code&gt; on the same file said 0. The most reliable check is &lt;code&gt;cmp&lt;/code&gt; against your local &lt;code&gt;dist/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Step 4, ship a build stamp. Our build now writes its timestamp into a static file under &lt;code&gt;public/&lt;/code&gt;, which each deployment host serves at &lt;code&gt;/_wix/extensions/public/build&lt;/code&gt;. Comparing a host with your local build becomes one request. We still run &lt;code&gt;cmp&lt;/code&gt; on the bundle for anything that matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it from a script
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;wix release&lt;/code&gt; draws an interactive UI. From a non-interactive shell it dies with a raw-mode error (&lt;code&gt;NonInteractiveTerminal&lt;/code&gt;, or a complaint about &lt;code&gt;isRawModeSupported&lt;/code&gt;) and creates no version, which is at least a clean failure. Two flags are both required to make it non-interactive: &lt;code&gt;--version-type&lt;/code&gt; and &lt;code&gt;--comment&lt;/code&gt;. With only &lt;code&gt;-t minor&lt;/code&gt; it still stops at the comment prompt.&lt;/p&gt;

&lt;p&gt;From a plain &lt;code&gt;bash&lt;/code&gt; with no TTY we wrap it in &lt;code&gt;script&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm run build &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
script &lt;span class="nt"&gt;-q&lt;/span&gt; /tmp/release.txt npx wix release &lt;span class="nt"&gt;-t&lt;/span&gt; minor &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"What changed, in one line"&lt;/span&gt; &amp;lt; /dev/null &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /dev/null 2&amp;gt;&amp;amp;1
&lt;span class="nb"&gt;tr&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'\r'&lt;/span&gt; &amp;lt; /tmp/release.txt | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-E&lt;/span&gt; &lt;span class="s1"&gt;'Version .* was created'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things we hit. Piping the output to &lt;code&gt;tail&lt;/code&gt; shows nothing until the process exits, so you cannot tell "stuck" from "working"; read the typescript file instead. And &lt;code&gt;--version-type&lt;/code&gt; accepts only &lt;code&gt;major&lt;/code&gt; and &lt;code&gt;minor&lt;/code&gt;. Passing &lt;code&gt;patch&lt;/code&gt; is rejected with &lt;code&gt;argument 'patch' is invalid. Allowed choices are major, minor.&lt;/code&gt; Every fix is therefore a minor bump, and after a &lt;code&gt;2.0.0&lt;/code&gt; the next minor is &lt;code&gt;2.1.0&lt;/code&gt;, not &lt;code&gt;2.0.1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Our release scripts also check that &lt;code&gt;HEAD&lt;/code&gt; is the intended commit and the working tree is clean before calling release, &lt;code&gt;tee&lt;/code&gt; the output into a dated report file, and grep for the "was created" line. Every call to &lt;code&gt;wix release&lt;/code&gt; creates a version. If the line is missing, read the Versions page in the Dev Center before running it again.&lt;/p&gt;

&lt;h2&gt;
  
  
  What deploys without a release, and what needs one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend event handlers deploy immediately&lt;/strong&gt;, independent of the version you release. The CLI prints a warning about this, and the warning is accurate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Listing descriptions need a release to reach the published listing.&lt;/strong&gt; On 2026-10-16 we edited the description and the pricing-benefit lines of one app and clicked "Update Market Listing". The benefit lines went live at once; the description stayed old in the published record, and the version indicator kept saying "Up to date". A &lt;code&gt;wix release -t minor&lt;/code&gt; with unchanged code pushed the new description to all nine languages within seconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pricing edits can lock releases.&lt;/strong&gt; On 2026-10-12 a change to a plan's benefit text put the app into "App submitted for review", and &lt;code&gt;wix release&lt;/code&gt; failed with &lt;code&gt;Failed Precondition … App with app id '…' is not editable&lt;/code&gt; for more than two days. A later pricing edit on another app did not trigger the lock. We don't know what decides it; we just finish code releases before touching pricing fields.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;wix preview&lt;/code&gt; lets you look before you create a version.&lt;/strong&gt; &lt;code&gt;npm run build &amp;amp;&amp;amp; npx wix preview&lt;/code&gt; prints a &lt;code&gt;versionOverrideId&lt;/code&gt;. Open the dashboard with &lt;code&gt;?apps-override=&amp;lt;that id&amp;gt;&lt;/code&gt; to see the build without releasing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where it still bites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The upload is only the start.&lt;/strong&gt; For storefront widgets, visitors receive the new deployment when Wix next renders their page, and that render can be cached for hours (we have measured up to 35; &lt;a href="https://dev.to/operix/your-wix-apps-storefront-widget-is-pinned-to-the-deployment-that-rendered-the-page-and-that-5bf5"&gt;that is a separate post&lt;/a&gt;). Verify with a cache-busting query on your own site, then &lt;code&gt;cmp&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tests that look at &lt;code&gt;dist/&lt;/code&gt; test the &lt;code&gt;dist/&lt;/code&gt; you have.&lt;/strong&gt; Some of ours scan the build output for secret names and absolute local paths. Run those after the build, or a green run is reporting on yesterday's artifact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Our build does more than &lt;code&gt;wix build&lt;/code&gt;.&lt;/strong&gt; It also strips absolute local paths out of &lt;code&gt;dist/&lt;/code&gt; before anything is uploaded. If you add steps like that, &lt;code&gt;wix release&lt;/code&gt; will not run them for you either.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The whole lesson fits in one line of a shell script: put the build in the script, because the release command won't do it for you.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by a backend engineer with ten years of experience, building small Wix and Shopify apps as operix.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The calendar app from the 2.17.0 story is on the Wix App Market: &lt;a href="https://www.wix.com/app-market/a5d62bae-8405-4635-a985-8743d9ad50d7?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=wix-release-does-not-build" rel="noopener noreferrer"&gt;https://www.wix.com/app-market/a5d62bae-8405-4635-a985-8743d9ad50d7?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=wix-release-does-not-build&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wix</category>
      <category>cli</category>
      <category>devops</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Your Wix widget loads from whichever deployment rendered the page, and that render can be cached for 35 hours</title>
      <dc:creator>operix</dc:creator>
      <pubDate>Fri, 06 Nov 2026 01:06:38 +0000</pubDate>
      <link>https://dev.to/operix/your-wix-apps-storefront-widget-is-pinned-to-the-deployment-that-rendered-the-page-and-that-5bf5</link>
      <guid>https://dev.to/operix/your-wix-apps-storefront-widget-is-pinned-to-the-deployment-that-rendered-the-page-and-that-5bf5</guid>
      <description>&lt;p&gt;&lt;em&gt;Observed September to November 2026 on apps built with the Wix CLI. This is platform behaviour we measured from the outside, not a documented contract. It may change.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you build Wix apps with the CLI, every &lt;code&gt;npx wix release&lt;/code&gt; creates a new deployment. Your dashboard page picks it up immediately. Your storefront widget, the custom element merchants drop onto their pages, often doesn't. For a week we believed merchants had to republish their sites to receive a widget fix. That was wrong, and the real mechanism is more useful to know.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we measured
&lt;/h2&gt;

&lt;p&gt;Each release of a CLI app gets a new static host of the form &lt;code&gt;&amp;lt;prefix&amp;gt;-&amp;lt;app-slug&amp;gt;.wix-host.com&lt;/code&gt;. The prefix changes on every release. Old deployments stay online.&lt;/p&gt;

&lt;p&gt;On 2026-09-23 we released version 1.63.0 of our search widget and, twenty minutes later, ran a read-only census over the external sites that had it installed. We found the widget on 31 published home pages. Nine of them already referenced the new prefix. Nine merchants do not republish within twenty minutes of a release they know nothing about, so "republish to receive the update" could not be the rule.&lt;/p&gt;

&lt;p&gt;We then fetched three of the sites that still referenced old prefixes, twice each: once plainly, once with a random query string.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Request&lt;/th&gt;
&lt;th&gt;&lt;code&gt;server-timing&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;age&lt;/code&gt; (seconds)&lt;/th&gt;
&lt;th&gt;Prefix in HTML&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;plain GET, site A&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cache;desc=hit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;24,582 (about 6.8 h)&lt;/td&gt;
&lt;td&gt;old&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;plain GET, site B&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cache;desc=hit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;50,198 (about 13.9 h)&lt;/td&gt;
&lt;td&gt;old&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;plain GET, site C&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cache;desc=hit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;125,021 (about 34.7 h)&lt;/td&gt;
&lt;td&gt;old&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;same URL + &lt;code&gt;?nocache=&amp;lt;random&amp;gt;&lt;/code&gt;, all three&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cache;desc=miss&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;current (1.63.0)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So the widget's script host is not baked into the page when the merchant publishes. Wix inserts the deployment that is current &lt;em&gt;when it renders the page&lt;/em&gt;, and the rendered HTML is then served from a cache. The oldest cached render we have seen was 125,021 seconds old, a little under 35 hours. We haven't found a documented TTL, and we've seen much shorter ones: on our own development sites the HTML switched to a new prefix within 2 to 4 minutes.&lt;/p&gt;

&lt;p&gt;Two months later the picture was the same at a larger scale. On 2026-11-03, about an hour after a release of our calendar widget, we fetched the home page of 126 external sites that run it. They referenced eight different deployments of the same app on the same afternoon. The distribution was 50, 38, 22, 8, 3, 2, 2 and 1 sites per deployment. The release from an hour earlier was on two of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we got it wrong first
&lt;/h2&gt;

&lt;p&gt;On 2026-09-18, right after a release, we checked one live site: old prefix. We published that site from the editor: new prefix. We wrote down "widgets update when the merchant republishes." Three days later, right after another release, two sites served two &lt;em&gt;different&lt;/em&gt; old bundles, and then both switched to the new one within minutes while nobody touched them. The lesson for us: one read of a cached page right after a change doesn't tell you the rule. We should have read it again a few hours later and looked at the headers.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to reproduce it on your own app
&lt;/h2&gt;

&lt;p&gt;You need a published site with your widget on it and the slug part of your app host.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Which deployment does the cached render reference, and how old is it?&lt;/span&gt;
curl &lt;span class="nt"&gt;-sD&lt;/span&gt; - &lt;span class="nt"&gt;-o&lt;/span&gt; /tmp/page.html &lt;span class="s1"&gt;'https://&amp;lt;a-site-with-your-widget&amp;gt;/'&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-iE&lt;/span&gt; &lt;span class="s1"&gt;'^(age|server-timing):'&lt;/span&gt;
&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-oE&lt;/span&gt; &lt;span class="s1"&gt;'[a-z0-9]+-&amp;lt;your-app-slug&amp;gt;\.wix-host\.com'&lt;/span&gt; /tmp/page.html | &lt;span class="nb"&gt;sort&lt;/span&gt; &lt;span class="nt"&gt;-u&lt;/span&gt;

&lt;span class="c"&gt;# 2. Force a fresh render by changing the URL&lt;/span&gt;
curl &lt;span class="nt"&gt;-sD&lt;/span&gt; - &lt;span class="nt"&gt;-o&lt;/span&gt; /tmp/fresh.html &lt;span class="s2"&gt;"https://&amp;lt;a-site-with-your-widget&amp;gt;/?nocache=&lt;/span&gt;&lt;span class="nv"&gt;$RANDOM$RANDOM&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-iE&lt;/span&gt; &lt;span class="s1"&gt;'^(age|server-timing):'&lt;/span&gt;
&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-oE&lt;/span&gt; &lt;span class="s1"&gt;'[a-z0-9]+-&amp;lt;your-app-slug&amp;gt;\.wix-host\.com'&lt;/span&gt; /tmp/fresh.html | &lt;span class="nb"&gt;sort&lt;/span&gt; &lt;span class="nt"&gt;-u&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If step 1 shows &lt;code&gt;cache;desc=hit&lt;/code&gt;, a large &lt;code&gt;age&lt;/code&gt; and an old prefix, and step 2 shows &lt;code&gt;cache;desc=miss&lt;/code&gt; and the prefix of your latest release, you are looking at the same mechanism.&lt;/p&gt;

&lt;p&gt;To learn which prefix &lt;em&gt;is&lt;/em&gt; current without a browser, fetch a fresh render of your own test site the same way. If you prefer the dashboard, the first segment of the hostname of your app's dashboard iframe is the current prefix, because the dashboard always runs on the latest deployment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Set&lt;/span&gt;&lt;span class="p"&gt;([...&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;iframe&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)].&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;h&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;src&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;hostname&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;wix-host&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="nx"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;-&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}))].&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One thing to watch: the hashed chunk filenames inside the bundle are resolved by Wix's loader at run time and are not in the HTML. To see which chunk a visitor actually loaded, use &lt;code&gt;performance.getEntriesByType('resource')&lt;/code&gt; in the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we changed
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;We stopped telling merchants to republish.&lt;/strong&gt; Our dashboard used to say the site had to be "published again." It now says: &lt;em&gt;Your site's cached pages still load the older version. Wix refreshes them on its own over time; publishing the site refreshes them right away.&lt;/em&gt; That one is true. The old one asked merchants to do work because we had misread a cache.&lt;/p&gt;

&lt;p&gt;We also compare prefixes now, and we allow "unknown". The dashboard fetches the merchant's published home page (and, if the widget is not there, a few pages listed in the sitemap), extracts our prefix, and compares it with the prefix the dashboard itself is running from. On the client that is &lt;code&gt;new URL(import.meta.url).origin&lt;/code&gt;. Don't use the server's &lt;code&gt;Host&lt;/code&gt; header for this; on Wix hosting it is not the public host. The result is tri-state: &lt;code&gt;current&lt;/code&gt;, &lt;code&gt;stale&lt;/code&gt;, or &lt;code&gt;unknown&lt;/code&gt; when either side could not be read. A wrong "stale" sends a merchant off to republish for nothing, and a wrong "current" hides a fix that never arrived, so when we can't read one side we'd rather show nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We ship a build stamp.&lt;/strong&gt; The build now writes its timestamp into a static file under &lt;code&gt;public/&lt;/code&gt;, so every deployment host answers &lt;code&gt;GET /_wix/extensions/public/build&lt;/code&gt; with its own build time. Comparing two deployments no longer means diffing minified bundles. A small script fetches each known site's home page, collects the prefixes, probes each prefix's build stamp, and prints a histogram. That is where the "eight deployments across 126 sites" number came from.&lt;/p&gt;

&lt;p&gt;Another thing we stopped doing: storing a deployment host anywhere. A GitHub Actions cron of ours called our server through a repository variable that held a host. Over four days and five releases it kept running a stale build, while we believed a server fix was live for every merchant. The host is now resolved at run time.&lt;/p&gt;

&lt;p&gt;And we verify releases with a cache-busting fetch. After each release we open our own site with a fresh query string and compare the served bundle with the local &lt;code&gt;dist/&lt;/code&gt; byte for byte, using &lt;code&gt;cmp&lt;/code&gt;. Opening the page plainly and seeing the old bundle is not evidence that the release failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What still trips us up
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cart and checkout plugins behave differently.&lt;/strong&gt; For the site plugin slots (cart, checkout), republishing alone did &lt;em&gt;not&lt;/em&gt; change the bundle. The host changed only after the merchant updated the app through the app installer and then published again (measured 2026-09-22). Those slots appear to pin the app version into the published site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The query-string trick is not guaranteed.&lt;/strong&gt; One of our test sites kept serving the previous day's build even with &lt;code&gt;?nocache=&lt;/code&gt;. Publishing from the editor refreshed it. We don't know what made that cache stickier.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prefix is not version.&lt;/strong&gt; A site that had installed major version 2 of our calendar served a deployment host from the version 3 line. The host tells you which build served the file. What the widget then does depends on your own code paths, not on the host. Don't read "new prefix" as "this merchant is on the new major".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The browser has its own cache.&lt;/strong&gt; Even after Wix re-renders, your browser may hold the old page. Add a query parameter when you check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Old hosts answer 200 forever.&lt;/strong&gt; If you measure against an old prefix you'll keep seeing "nothing changed", for as long as you like.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So this is how we think about it now: a widget release reaches a visitor when Wix next renders that page, which depends on the site's cache and not on anything the merchant did. We plan our checks around that, and we wrote the dashboard text around it too.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by a backend engineer with ten years of experience, building small Wix and Shopify apps as operix.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The calendar widget whose 126-site spread appears above is on the Wix App Market: &lt;a href="https://www.wix.com/app-market/a5d62bae-8405-4635-a985-8743d9ad50d7?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=wix-widget-cached-render-35h" rel="noopener noreferrer"&gt;https://www.wix.com/app-market/a5d62bae-8405-4635-a985-8743d9ad50d7?utm_source=blog&amp;amp;utm_medium=article&amp;amp;utm_campaign=wix-widget-cached-render-35h&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related: &lt;a href="https://dev.to/operix/npx-wix-release-does-not-build-how-we-shipped-yesterdays-dist-by-mistake-4lpg"&gt;&lt;code&gt;npx wix release&lt;/code&gt; does not build: how we shipped yesterday's &lt;code&gt;dist/&lt;/code&gt; by mistake&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wix</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
