SSR in dev (2.0)
See original GitHub issueIs your feature request related to a problem? Please describe.
Vite 2.0 beta doesn’t seem to have any sort of SSR solution included, I assume it’s still in development and things might catch up later?
Describe the solution you’d like
A new transformRequest
API to load and transform a URL and get the result that is optimized for server:
transformRequest(url, { ssr: true })
Plugins should also be able to tell if it’s requesting the build for server.
Describe alternatives you’ve considered
No other solution is available, maybe I’m missing something.
Additional context
Trying to build something like Nuxt.js using Vite, SSR in dev is necessary.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Server-Side Rendering - Vite
When running SSR, a dependency that provides CommonJS builds can be "externalized" from Vite's SSR transform / module system to speed up both...
Read more >Server-side rendering (SSR) - Lit.dev
Server-side rendering (SSR) is a technique for generating and serving the HTML of your components, including shadow DOM and styles, before their JavaScript ......
Read more >Server-Side-Rendering Renaissance - Daily.dev
Dec 17, 2020 ... This technique is called server-side-rendering (SSR). ... The hybrid model, or as I love to call it, SSR 2.0,...
Read more >Server-Side Rendering (SSR) - Vue.js
What is SSR? #. Vue.js is a framework for building client-side applications. By default, Vue components produce and manipulate DOM in the browser...
Read more >Server-side rendering (SSR) with Angular Universal
To start rendering your application with Universal on your local system, use the following command. content_copy npm run dev:ssr. Open a ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, this is on the roadmap, just don’t want to finalize the API before I get a working prototype running on top of it.
FWIW, you can already use the
build
JavaScript API to bundle a route on the fly (with tweakedrollupOptions
).@arpowers I’ll pay attention to it when I think it’s time. This is open source and you are not paying me money to prioritize things you want.