<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pxvpxv</author_name>
  <author_url>https://blog.hatena.ne.jp/pxvpxv/</author_url>
  <blog_title>pixiv inside</blog_title>
  <blog_url>https://inside.pixiv.blog/</blog_url>
  <categories>
    <anon>技術</anon>
    <anon>エンジニア</anon>
  </categories>
  <description>こんにちは、普段 pixivcoban のフロントエンド開発を担当している nyamadan です。 今回は、pixivcoban でログイン必須ページの初期表示を改善するために、SSR で session cookie の有無を確認する仕組みを導入した話を紹介します。 pixivcoban では Next.js の Pages Router を利用しており、通信やローカル状態の管理には Vercel SWR を使っています。ログイン状態の確認も、クライアント側では SWR を利用した useLoginRequired() hook 経由で行っています。 ほとんどのページでログインが必要な構造…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finside.pixiv.blog%2F2026%2F06%2F15%2F173000&quot; title=&quot;Next.js Pages Routerでログイン必須ページの初期表示を改善した話 - pixiv inside&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>https://cdn-ak.f.st-hatena.com/images/fotolife/d/devpixiv/20260611/20260611155145.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-06-15 17:30:00</published>
  <title>Next.js Pages Routerでログイン必須ページの初期表示を改善した話</title>
  <type>rich</type>
  <url>https://inside.pixiv.blog/2026/06/15/173000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
