5af24efb34
* pin preact to 10.5 to resolve preact issue * fix: use current yarn.lock and only update preact Co-authored-by: Nate Moore <nate@skypack.dev> |
||
---|---|---|
.. | ||
compat | ||
CHANGELOG.md | ||
client.js | ||
index.js | ||
package.json | ||
README.md | ||
server.js | ||
static-html.js |
@astrojs/renderer-preact
This is a plugin for Astro apps that enables server-side rendering of Preact components.
Installation
Install @astrojs/renderer-preact
and then add it to your astro.config.mjs
in the renderers
property:
npm install @astrojs/renderer-preact
astro.config.mjs
export default {
// ...
renderers: [
// ...
'@astrojs/renderer-preact'
]
}