---
title: "X 归档 2023-01-31"
date: "2023-01-31"
tags:
  - x-archive
  - frontend
---

<div class="x-arch-meta">2 条动态 · 图 1 · 视频 1</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1620137501192253440" id="xl-1620137501192253440-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1620137501192253440" id="xl-1620137501192253440-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1653342726966980608/qNCeG9WK_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-liked" aria-label="赞" title="赞"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></svg></span><a class="x-arch-author" href="https://x.com/shuding" target="_blank" rel="nofollow noopener" data-name="Shu" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1653342726966980608/qNCeG9WK_bigger.jpg">@shuding</a><span class="x-arch-time">03:10</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1620137501192253440-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1620137501192253440-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/shuding/status/1620137501192253440" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Statically typed links are coming to @nextjs:<br /><br />◆ Autocompletion<br />◆ Error on invalid routes<br />◆ Prevents 404 links during build<br />◆ Dynamic, catch-all, and optional catch-all routes<br />◆ Works with both `pages` and `app`<br />◆ No extra configuration needed!</div>
    <div class="x-arch-text x-arch-trans">@nextjs 即将支持静态类型链接：<br /><br />◆ 自动补全<br />◆ 无效路由直接报错<br />◆ 构建时防止 404 链接<br />◆ 支持动态、catch-all 和可选 catch-all 路由<br />◆ `pages` 和 `app` 皆可使用<br />◆ 无需任何额外配置！</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-01/1620137501192253440-poster.jpg" src="/cdn-media/x/2026-10/1620137501192253440-video.mp4" width="1278" height="720" data-duration="36" aria-label="@shuding 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1620162490649944065" id="xl-1620162490649944065-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1620162490649944065" id="xl-1620162490649944065-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1465780299380502537/pptBYF44_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-liked" aria-label="赞" title="赞"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></svg></span><a class="x-arch-author" href="https://x.com/stefanjudis" target="_blank" rel="nofollow noopener" data-name="Stefan Judis" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1465780299380502537/pptBYF44_bigger.jpg">@stefanjudis</a><span class="x-arch-time">04:50</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1620162490649944065-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1620162490649944065-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/stefanjudis/status/1620162490649944065" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Random question: what are browser features that only work in one browser but you'd love to see working across the board?<br /><br />For me it's the `element()` CSS function that I use for minimaps on my blog. Unfortunately, it's Firefox only.<br /><br /><a href="https://www.stefanjudis.com/a-firefox-only-minimap/" target="_blank" rel="noopener">https://www.stefanjudis.com/a-firefox-only-minimap/</a></div>
    <div class="x-arch-text x-arch-trans">随机一问：有哪些只在单一浏览器里可用的浏览器功能，是你希望全面普及的？<br /><br />对我来说是 `element()` CSS 函数，我在博客上用它做小地图。遗憾的是，它只有 Firefox 支持。<br /><br /><a href="https://www.stefanjudis.com/a-firefox-only-minimap/" target="_blank" rel="noopener">https://www.stefanjudis.com/a-firefox-only-minimap/</a></div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2026-10/1620162490649944065-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-10/1620162490649944065-1.jpg" alt="@stefanjudis 的配图 1/1" loading="lazy" decoding="async" width="1332" height="316" /></a>
    </div>
  </div>
</div>
