<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《next.js 的一些坑》的评论</title>
	<atom:link href="http://www.zhugao.net/today/2017/11502.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zhugao.net/today/2017/11502.html</link>
	<description></description>
	<lastBuildDate>Sun, 10 May 2026 14:33:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6.1</generator>
	<item>
		<title>作者：刘</title>
		<link>http://www.zhugao.net/today/2017/11502.html/comment-page-1#comment-1806</link>
		<dc:creator>刘</dc:creator>
		<pubDate>Thu, 19 Jul 2018 13:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhugao.net/?p=11502#comment-1806</guid>
		<description><![CDATA[楼主，项目运行，vendor.js很大，导致首页加载很慢。怎么解决的]]></description>
		<content:encoded><![CDATA[<p>楼主，项目运行，vendor.js很大，导致首页加载很慢。怎么解决的</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Valar Morghulis</title>
		<link>http://www.zhugao.net/today/2017/11502.html/comment-page-1#comment-1803</link>
		<dc:creator>Valar Morghulis</dc:creator>
		<pubDate>Sat, 28 Apr 2018 01:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhugao.net/?p=11502#comment-1803</guid>
		<description><![CDATA[客户端的 fetch 请求,注意在请求 Header 添加 credentials: &#039;include&#039;, 服务端(nextjs)的请求因为不能自动获取到浏览器的 cookie,可以通过 getInitialProps 钩子函数手动传入cookie (req.headers.cookie). 可以参考 https://github.com/BaoXuebin/xdbin-react-app/blob/master/src/utils/Net.js]]></description>
		<content:encoded><![CDATA[<p>客户端的 fetch 请求,注意在请求 Header 添加 credentials: &#8216;include&#8217;, 服务端(nextjs)的请求因为不能自动获取到浏览器的 cookie,可以通过 getInitialProps 钩子函数手动传入cookie (req.headers.cookie). 可以参考 <a href="https://github.com/BaoXuebin/xdbin-react-app/blob/master/src/utils/Net.js" >https://github.com/BaoXuebin/xdbin-react-app/blob/master/src/utils/Net.js</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：zhugao</title>
		<link>http://www.zhugao.net/today/2017/11502.html/comment-page-1#comment-1802</link>
		<dc:creator>zhugao</dc:creator>
		<pubDate>Fri, 20 Apr 2018 02:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhugao.net/?p=11502#comment-1802</guid>
		<description><![CDATA[时间长了，代码木有印象了。后来我们不用next了，坑太多。]]></description>
		<content:encoded><![CDATA[<p>时间长了，代码木有印象了。后来我们不用next了，坑太多。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：ngnice</title>
		<link>http://www.zhugao.net/today/2017/11502.html/comment-page-1#comment-1801</link>
		<dc:creator>ngnice</dc:creator>
		<pubDate>Tue, 17 Apr 2018 15:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhugao.net/?p=11502#comment-1801</guid>
		<description><![CDATA[可以给下 问题1 的解决方案代码么

我现在遇到类似的问题]]></description>
		<content:encoded><![CDATA[<p>可以给下 问题1 的解决方案代码么</p>
<p>我现在遇到类似的问题</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：zhugao</title>
		<link>http://www.zhugao.net/today/2017/11502.html/comment-page-1#comment-1797</link>
		<dc:creator>zhugao</dc:creator>
		<pubDate>Thu, 18 Jan 2018 15:49:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhugao.net/?p=11502#comment-1797</guid>
		<description><![CDATA[赞 :)]]></description>
		<content:encoded><![CDATA[<p>赞 <img src='http://www.zhugao.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：luanwulin</title>
		<link>http://www.zhugao.net/today/2017/11502.html/comment-page-1#comment-1796</link>
		<dc:creator>luanwulin</dc:creator>
		<pubDate>Thu, 18 Jan 2018 09:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhugao.net/?p=11502#comment-1796</guid>
		<description><![CDATA[受到博主的启发，后来自己又研究了下。
assetPrefix这个参数可以用来当做publicPath使用，配合url-loader，可以给文件添加hash。然后将构建出来文件的目标路径修改为express.static的目录，就不用像博主那样去server.js修改了。]]></description>
		<content:encoded><![CDATA[<p>受到博主的启发，后来自己又研究了下。<br />
assetPrefix这个参数可以用来当做publicPath使用，配合url-loader，可以给文件添加hash。然后将构建出来文件的目标路径修改为express.static的目录，就不用像博主那样去server.js修改了。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
