TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Next.js 3.0 Preview: Static Exports and Dynamic Imports

126 点作者 Rauchg大约 8 年前

11 条评论

nfriedly大约 8 年前
I used Next.js to build <a href="http:&#x2F;&#x2F;user-agent.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;user-agent.io&#x2F;</a> over a weekend and I&#x27;m really happy with the results so far. Dynamic url routing is a bit awkward, but not onerously so. (It also uses Express to handle WebSockets and dynamic routing for the share&#x2F;host pages.)<p>Source is at <a href="https:&#x2F;&#x2F;github.com&#x2F;nfriedly&#x2F;user-agent.io" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nfriedly&#x2F;user-agent.io</a> if anyone is interested.<p>I&#x27;m thinking about switching some of my work projects over to it sometime soon.
评论 #14346048 未加载
评论 #14344955 未加载
onestone大约 8 年前
I evaluated Next.js recently, and while it looks excellent on the surface, there were a couple of red flags:<p>- Devs insisting (incorrectly) that they _have_ to ship the component source code _inline_ in the server-rendered HTML. I commented on this issue here: <a href="https:&#x2F;&#x2F;github.com&#x2F;zeit&#x2F;next.js&#x2F;issues&#x2F;427#issuecomment-290882395" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zeit&#x2F;next.js&#x2F;issues&#x2F;427#issuecomment-2908...</a><p>- The same transpiled code is used both server-side and client-side. Code which should be strictly server-only, e.g. getInitialProps(), is visible client-side as well.
评论 #14348024 未加载
czzarr大约 8 年前
A bit off topic but since it&#x27;s mentioned in the article: how does the unlimited free static hosting compare with netlify&#x27;s offering?
nikon大约 8 年前
I&#x27;m in the market for a good React Universal boilerplate and am considering Next.js for my next project...<p>A couple of things:<p>1) Why do you not use React Router? How does your own router play with Redux?<p>2) Is it possible to strip out now.sh? I appreciate it&#x27;s how you make money but I want to deploy to my own infrastructure.
评论 #14345456 未加载
评论 #14345463 未加载
评论 #14345437 未加载
评论 #14345791 未加载
评论 #14345433 未加载
aioprisan大约 8 年前
I&#x27;m very impressed by the quality of the Next.js framework and how lightweight it is. Glad to see it move forward!
kelvin0大约 8 年前
I am wondering why server-side rendering? I thought that stage was passed and everyone was doing client-side stuff? Please forgive a web n00b for asking.
评论 #14345673 未加载
desireco42大约 8 年前
I really like a static website command, NextJS impresses me every time.
daxhoqodu大约 8 年前
can anyone compare with meteor please?
评论 #14344510 未加载
评论 #14344406 未加载
评论 #14344404 未加载
评论 #14344383 未加载
hsribei大约 8 年前
How does Next.js&#x27; static export feature compare to using Gatsby.js?
segphault大约 8 年前
Interesting concept, but it seems rather heavy. Installing it from npm pulls in over 400 packages, weighing in at about 60MB.
评论 #14345128 未加载
gavinpc大约 8 年前
&gt; dynamic import<p>Umm... you mean like AMD? Yeah, it&#x27;s awesome (<i>edit</i> I mean, was a solved problem years ago). Somebody explain to me how people live without this.
评论 #14345198 未加载