vite-plugin-ssr | Like Next.js / Nuxt but as do-one-thing-do-it-well Vite | Server Side Rendering library
kandi X-RAY | vite-plugin-ssr Summary
kandi X-RAY | vite-plugin-ssr Summary
Intro & docs: vite-plugin-ssr.com Examples (official): examples/ Examples (community): examples/README.md. Version history & breaking changes: CHANGELOG.md. Follow: Twitter > @brillout Chat: Discord > Vikevite-plugin-ssr. Have a question? Want a feature? A tool integration is not working? Join our Discord or open a GitHub ticket.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vite-plugin-ssr
vite-plugin-ssr Key Features
vite-plugin-ssr Examples and Code Snippets
Community Discussions
Trending Discussions on vite-plugin-ssr
QUESTION
I've been using this vite-plugin-ssr
with firebase functions happily until one day firebase-admin
bailed on me. My setup was working until I deleted my node modules and reinstalled my dependencies. It seems that vite
is bundling firebase-admin
with the client even though there are no imports in clientside code referring to firebase-admin
, only in the .page.server.ts
files. How do I specify to vite
or rollup
to not bundle firebase-admin
into the dist/client
directory?
I would really appreciate some pointers... I've spent 24hrs + on this one issue and at this point I am considering switching the SSR off, or copying the files to a fresh project. Basically I just want a clean setup with this simple stack:
- firebase functions
vite
+ SSR (usingvite-plugin-ssr
)- preact and typescript
ANSWER
Answered 2021-Sep-11 at 01:36Adding this to my vite
configuration fixed it:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vite-plugin-ssr
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page