-- SSR 에서 XML 사이트맵을 만든다 (next-sitemap, Pages Router)-- withXMLResponseLegacy 는 next-sitemap 소스(src/ssr/response.ts)의 동작 그대로다getServerSideProps ctx = getServerSideSitemapLegacy ctx fields -- 필드 목록 → XML 문자열 >>= withXMLResponseLegacy ctxwithXMLResponseLegacy ctx content = do setHeader (res ctx) "Content-Type" "text/xml" write (res ctx) content end (res ctx)
-- 명시도가 같으면 뒤에 온 규칙이 이긴다 — 그러니 결과는 <head> 안 시트 순서가 정한다winner = last . filter (matches el) . headOrder-- 같은 두 시트인데 들어온 길에 따라 순서가 다르다headOrder (Direct "/b") == [vendor, shared] -- .btn 파랑headOrder (Navigate "/a" "/b") == [shared, vendor] -- .btn 회색: shared 는 /a 가 이미 불렀다-- 순서를 바꾸는 곳 셋inject sheets head = head ++ filter (`notElem` head) sheets -- 1 이미 있는 href 는 건너뛴다, App Router 는 지우지 않는다-- 2 빌드 청킹: 14.2.0 의 새 CSS 청킹(#63157)이 여러 페이지 CSS 를 한 청크로-- global CSS 병합 수정 #67373 (v15 canary~, 14.2.x 엔 없다) · CSS Modules 순서 #70087 열림-- 3 Pages Router 는 반대 증상: 이동 뒤 서버 렌더 시트(data-n-p)를 지우는데-- 동적 import CSS 는 이미 있어 건너뛰었으므로 아예 사라진다 → #72959