<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Kiarash Soleimanzadeh: deployment</title>
  <subtitle>Posts tagged deployment.</subtitle>
  <id>https://blog.kiarashs.ir/tags/deployment</id>
  <link rel="alternate" type="text/html" href="https://blog.kiarashs.ir/tags/deployment" />
  <link rel="self" type="application/atom+xml" href="https://blog.kiarashs.ir/tags/deployment/feed.xml" />
  <updated>2026-03-02T00:00:00.000Z</updated>
  <rights>© 2026 Kiarash Soleimanzadeh. Text and figures: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); code: MIT (https://opensource.org/license/mit); except where a post or a caption says otherwise.</rights>
  <entry>
    <title>Publishing and what readers get</title>
    <link rel="alternate" type="text/html" href="https://blog.kiarashs.ir/blog/publishing" />
    <id>https://blog.kiarashs.ir/blog/publishing</id>
    <published>2026-03-02T00:00:00.000Z</published>
    <updated>2026-03-02T00:00:00.000Z</updated>
    <author><name>Kiarash Soleimanzadeh</name></author>
    <category term="guide" />
    <category term="deployment" />
    <summary>What the build produces, how deployment works, and the three settings you have to fill in yourself.</summary>
    <content type="html">&lt;p&gt;&lt;code&gt;npm run build&lt;/code&gt; renders diagrams, compiles the Markdown, bundles the client,
and writes one HTML file per route. What lands in &lt;code&gt;dist/&lt;/code&gt; is a static site: no
server, no database, no build step at request time.&lt;/p&gt;
&lt;h2 id=&quot;one-file-per-route&quot;&gt;One file per route&lt;a class=&quot;heading-anchor&quot; href=&quot;#one-file-per-route&quot; aria-label=&quot;Copy a link to “One file per route”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Every route is prerendered, so &lt;code&gt;/blog/publishing&lt;/code&gt; is a real
&lt;code&gt;blog/publishing/index.html&lt;/code&gt; with the post&apos;s title in &lt;code&gt;&amp;#x3C;title&gt;&lt;/code&gt;, its summary in
the description, and Open Graph and Twitter tags pointing at the canonical URL.
Three things follow from that. Links unfurl correctly in Slack, Mastodon and
Bluesky, which do not run JavaScript. Deep links return HTTP 200 rather than a
404 that happens to contain the right page. And the text is readable with
scripting disabled.&lt;/p&gt;
&lt;p&gt;The client bundle still ships, and takes over as soon as it loads, so
navigation between pages stays instant.&lt;/p&gt;
&lt;h2 id=&quot;feed-and-sitemap&quot;&gt;Feed and sitemap&lt;a class=&quot;heading-anchor&quot; href=&quot;#feed-and-sitemap&quot; aria-label=&quot;Copy a link to “Feed and sitemap”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;feed.xml&lt;/code&gt; is an Atom feed with the full text of each post, and every tag has
one of its own. Both are linked from the head of the page, and both are also
visible: the icon beside the nav, the link in the footer, and a per-tag link on
each tag page. &lt;code&gt;sitemap.xml&lt;/code&gt; lists every canonical URL with its last-modified
date.&lt;/p&gt;
&lt;h2 id=&quot;keyboard&quot;&gt;Keyboard&lt;a class=&quot;heading-anchor&quot; href=&quot;#keyboard&quot; aria-label=&quot;Copy a link to “Keyboard”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;/&lt;/code&gt; searches, &lt;code&gt;j&lt;/code&gt; and &lt;code&gt;k&lt;/code&gt; walk a list of posts, &lt;code&gt;[&lt;/code&gt; and &lt;code&gt;]&lt;/code&gt; turn the page or
step to the newer and older post, &lt;code&gt;b&lt;/code&gt; goes back to the blog index, &lt;code&gt;t&lt;/code&gt; cycles
the theme, and &lt;code&gt;?&lt;/code&gt; shows the list — also reachable from the footer, since a shortcut nobody knows
about is not a shortcut. Keys stay out of the way while you are typing.&lt;/p&gt;
&lt;h2 id=&quot;comments-1&quot;&gt;Comments&lt;a class=&quot;heading-anchor&quot; href=&quot;#comments-1&quot; aria-label=&quot;Copy a link to “Comments”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Comments are giscus threads backed by GitHub Discussions, keyed on the post&apos;s
path. Enable Discussions on the repository, run &lt;a href=&quot;https://giscus.app&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;https://giscus.app&lt;/a&gt; against it,
and paste &lt;code&gt;repoId&lt;/code&gt; and &lt;code&gt;categoryId&lt;/code&gt; into &lt;code&gt;src/site.config.ts&lt;/code&gt;. Until then each
post shows a short note where the thread would be.&lt;/p&gt;
&lt;h2 id=&quot;search&quot;&gt;Search&lt;a class=&quot;heading-anchor&quot; href=&quot;#search&quot; aria-label=&quot;Copy a link to “Search”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Search covers titles, tags, author names, summaries and full text. The index
loads only when someone opens &lt;code&gt;/search&lt;/code&gt;, so the archive&apos;s text is not part of
what everyone else downloads.&lt;/p&gt;
&lt;p&gt;Short queries are matched literally and longer ones fuzzily. Fuzzy-matching a
four-letter word against a whole post body matches every post, while a typo in
a longer word should still find what you meant.&lt;/p&gt;
&lt;h2 id=&quot;sharing&quot;&gt;Sharing&lt;a class=&quot;heading-anchor&quot; href=&quot;#sharing&quot; aria-label=&quot;Copy a link to “Sharing”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Each post ends with links to LinkedIn, X, Bluesky and email, plus a button that
copies the canonical URL, unless its frontmatter says &lt;code&gt;share: false&lt;/code&gt;. They are ordinary links built when the page is
rendered: no share widget, no script from anyone else, and nothing that counts
who clicked.&lt;/p&gt;
&lt;h2 id=&quot;print-and-pdf&quot;&gt;Print and PDF&lt;a class=&quot;heading-anchor&quot; href=&quot;#print-and-pdf&quot; aria-label=&quot;Copy a link to “Print and PDF”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The share row has a Print button, which is the same dialog a browser&apos;s Save as
PDF goes through. Before it opens, every collapsed &lt;code&gt;details&lt;/code&gt; on the page is
expanded — a contents list or a citation folded shut prints as a blank line —
and closed again afterwards. The stylesheet drops the navigation, the comments
and the buttons, forces the light palette whatever the reader chose, prints the
target of every external link after it, keeps figures, tables and code from
breaking across a page, and puts the post&apos;s own URL under the title, since a
printout has no address bar.&lt;/p&gt;
&lt;h2 id=&quot;themes&quot;&gt;Themes&lt;a class=&quot;heading-anchor&quot; href=&quot;#themes&quot; aria-label=&quot;Copy a link to “Themes”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The toggle in the header has three positions: follow the system, force light,
force dark. &quot;Follow the system&quot; is the default and stores nothing beyond the
choice itself; the other two are remembered. Which state the button shows is
decided in CSS from a &lt;code&gt;data-theme&lt;/code&gt; attribute set before first paint, so the
page never flashes the wrong colours and the button is right before any script
runs.&lt;/p&gt;
&lt;h2 id=&quot;switching-parts-off&quot;&gt;Switching parts off&lt;a class=&quot;heading-anchor&quot; href=&quot;#switching-parts-off&quot; aria-label=&quot;Copy a link to “Switching parts off”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;features&lt;/code&gt; in &lt;code&gt;src/site.config.ts&lt;/code&gt; turns optional sections off wholesale:&lt;/p&gt;
&lt;div class=&quot;code-block&quot;&gt;&lt;div class=&quot;code-block__bar&quot;&gt;&lt;span class=&quot;code-block__lang&quot; aria-hidden=&quot;true&quot;&gt;TypeScript&lt;/span&gt;&lt;button type=&quot;button&quot; class=&quot;code-block__wrap&quot;&gt;&lt;span class=&quot;code-block__wrap-label code-block__wrap-label--off&quot;&gt;wrap&lt;/span&gt;&lt;span class=&quot;code-block__wrap-label code-block__wrap-label--on&quot;&gt;unwrap&lt;/span&gt;&lt;span class=&quot;visually-hidden&quot;&gt; long lines&lt;/span&gt;&lt;/button&gt;&lt;button type=&quot;button&quot; class=&quot;code-block__copy&quot;&gt;copy&lt;span class=&quot;visually-hidden&quot;&gt; code to clipboard&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;pre tabindex=&quot;0&quot; class=&quot;numbered&quot; style=&quot;--code-digits:1&quot;&gt;&lt;code class=&quot;hljs language-ts&quot;&gt;&lt;span class=&quot;code-line&quot;&gt;&lt;span class=&quot;hljs-attr&quot;&gt;features&lt;/span&gt;: {
&lt;/span&gt;&lt;span class=&quot;code-line&quot; style=&quot;--indent:2&quot;&gt;  &lt;span class=&quot;hljs-attr&quot;&gt;publications&lt;/span&gt;: &lt;span class=&quot;hljs-literal&quot;&gt;false&lt;/span&gt;,   &lt;span class=&quot;hljs-comment&quot;&gt;// /publications, from publications.bib&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;code-line&quot; style=&quot;--indent:2&quot;&gt;  &lt;span class=&quot;hljs-attr&quot;&gt;archive&lt;/span&gt;: &lt;span class=&quot;hljs-literal&quot;&gt;true&lt;/span&gt;,         &lt;span class=&quot;hljs-comment&quot;&gt;// /archive, every post grouped by year&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;code-line&quot;&gt;},&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;A feature that is off has no nav entry, no route and no prerendered page, and
does not appear in the sitemap. Nothing is merely hidden with CSS.&lt;/p&gt;
&lt;h2 id=&quot;the-three-things-to-fill-in&quot;&gt;The three things to fill in&lt;a class=&quot;heading-anchor&quot; href=&quot;#the-three-things-to-fill-in&quot; aria-label=&quot;Copy a link to “The three things to fill in”&quot;&gt;&lt;svg class=&quot;heading-anchor__icon&quot; viewBox=&quot;0 0 24 24&quot; width=&quot;14&quot; height=&quot;14&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;&lt;path d=&quot;M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;src/site.config.ts&lt;/code&gt; holds the title, tagline, description and the site&apos;s URL —
the last one matters, because canonical links, the feed and the Open Graph tags
are all built from it. &lt;code&gt;src/content/authors.ts&lt;/code&gt; holds the author records. And
giscus needs its two ids. Everything else has a working default.&lt;/p&gt;</content>
  </entry>
</feed>
