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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Vite-plugin-ssr – Do-one-thing-do-it-well alternative to Next.js / Nuxt

114 点作者 brillout超过 2 年前
Vite-plugin-ssr author here.<p>Let me know if you have questions!

11 条评论

nwienert超过 2 年前
Just want to say well done. I’ve played with this with Tamagui[0] and I’d love to see this stack continue to develop.<p>Specifically, I think there’s a rare window of opportunity to replicate the new Expo router file system routes exactly in vite and build the holy grail of universal stacks.<p>I forked Hydrogen a month back or so just to get a feel for RSC and potentially how it’d work with native. Came away with huge positive impressions on Vite in general (and a vite stack that works nicely[1] with the Tamagui optimizing compiler fully working[2]).<p>Would love to collaborate towards this ideal setup with anyone competent, get in touch or I’ll ping in the discord.<p>There’s huge wins to be had at that level of vertical integration I think we haven’t touched yet.<p>[0] <a href="https:&#x2F;&#x2F;tamagui.dev" rel="nofollow">https:&#x2F;&#x2F;tamagui.dev</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;tamagui&#x2F;tamagui&#x2F;tree&#x2F;master&#x2F;apps&#x2F;site-vite" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tamagui&#x2F;tamagui&#x2F;tree&#x2F;master&#x2F;apps&#x2F;site-vit...</a><p>[2] <a href="https:&#x2F;&#x2F;tamagui.dev&#x2F;docs&#x2F;intro&#x2F;compiler" rel="nofollow">https:&#x2F;&#x2F;tamagui.dev&#x2F;docs&#x2F;intro&#x2F;compiler</a>
评论 #33189415 未加载
redbar0n超过 2 年前
There&#x27;s a fairly good and thorough comparison between vite-plugin-ssr and NextJS here: <a href="https:&#x2F;&#x2F;github.com&#x2F;brillout&#x2F;vite-plugin-ssr&#x2F;issues&#x2F;158" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;brillout&#x2F;vite-plugin-ssr&#x2F;issues&#x2F;158</a>
评论 #33189704 未加载
robertakarobin超过 2 年前
Really interesting! How would you say it compares to Astro[0]? Astro is currently either all-SSG or all-SSR, but this quarter they&#x27;re working on configuring that per -route.<p>[0] <a href="https:&#x2F;&#x2F;astro.build" rel="nofollow">https:&#x2F;&#x2F;astro.build</a>
评论 #33203516 未加载
lionside超过 2 年前
Wowowowow thanks for your efforts behind this!<p>I’ve integrated vite with a rust backend[1] and so many people have asked me how I managed to achieve SSR because they equate SSR with render+hydrate but it’s really just classical SSR. I think I can finally make their dreams come true because of this.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;Wulf&#x2F;create-rust-app" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Wulf&#x2F;create-rust-app</a>
评论 #33189360 未加载
johnnypangs超过 2 年前
What are the differences between this and the ssr in vite?<p><a href="https:&#x2F;&#x2F;vitejs.dev&#x2F;guide&#x2F;ssr.html" rel="nofollow">https:&#x2F;&#x2F;vitejs.dev&#x2F;guide&#x2F;ssr.html</a>
评论 #33192101 未加载
voat超过 2 年前
I am a big fan of vps. Brillout had some great ideas in this space, check out his other project Telefunc and Stem to see what I mean.<p>Things like the Enhance framework or Astro would be trivial to build with vps, especially once there single file page proposals get built.
tr1ll10nb1ll超过 2 年前
I&#x27;m really liking it so far and have been using this in production for the landing (and soon the blog) page at <a href="https:&#x2F;&#x2F;devclad.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;devclad.com&#x2F;</a> using SSG.<p>Had some issues running the SSR api function on Vercel, though. Probably something to do with the the assets&#x2F; being specified in the wrong directory.
评论 #33190804 未加载
no_wizard超过 2 年前
First and foremost: This looks great! I like the APIs, its a very next like experience, and I think the way you are handling fetching data is better than getInitialProps or getServerSideProps simply because it seems less limiting in approach.<p>Next.js is really being held back by webpack IMO and they would do well to convert to rollup &#x2F; vite I think. This, Hydrogen from Shopify et. al. are proving webpack doesn&#x27;t have the best future I think.<p>All that said, there is one thing about community solutions like this I worry about:<p>I know as long as I&#x27;m paying money to Vercel, I have support with Next.js and it will (in all realistic likelihood) be that way for years.<p>With community backed frameworks, there is no way that, say, this won&#x27;t become unmaintained.<p>For all the possible warts Vercel &#x2F; Next.js may or may not have, I think as a business building on top of these things, its important to take this into consideration. I&#x27;d rather not switch my SSR framework out from under my feet in 18 months.
评论 #33193965 未加载
enlyth超过 2 年前
&gt; The source code of vite-plugin-ssr has no known bug<p>Bold claim, but I guess it depends on the definition of &quot;known&quot; :)
评论 #33191673 未加载
srameshc超过 2 年前
Thanks for your work, this is what I am looking for. I have been looking for NextJS alternative since I have a tough time deploying to Cloudflare. I don&#x27;t know why this never came up in my search results even though I digged beyond the 10th page of search result on many search.
评论 #33194234 未加载
davidjaenike超过 2 年前
Cool! I think with the popularity of next, SSR react frameworks are here to stay. My biggest gripe with next is how much I dislike vercel, currently looking at alternatives.<p>But nicely done! I&#x27;ll play around with it
评论 #33190060 未加载