<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>susisu</author_name>
  <author_url>https://blog.hatena.ne.jp/susisu/</author_url>
  <blog_title>Object.create(null)</blog_title>
  <blog_url>https://susisu.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>小ネタ</anon>
  </categories>
  <description>Next.js から static export した HTML を S3 に配置して CloudFront から配信する, というのはそこそこよくある構成なんじゃないかと思います. 知らんけど. ところで素朴に CloudFront の origin に S3 を指定するだけでは, ページのパスの解決がうまくいきません. 例えば /pages/about.tsx というページコンポーネントがあった場合, 通常の Next.js であれば /about というパスでこのページにアクセスできますが, 素朴な構成の場合は static export されたファイル名と完全一致する /about.h…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsusisu.hatenablog.com%2Fentry%2F2023%2F01%2F29%2F210811&quot; title=&quot;CloudFront Functions で Next.js のパス解決の真似をする - Object.create(null)&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-29 21:08:11</published>
  <title>CloudFront Functions で Next.js のパス解決の真似をする</title>
  <type>rich</type>
  <url>https://susisu.hatenablog.com/entry/2023/01/29/210811</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
