6ea504a6a0
hey there 👋 stumbled on the [`using-preact` example](https://github.com/vercel/next.js/tree/canary/examples/using-preact) first when i tried to port my project, just saw that the [config wasn’t that trivial](https://github.com/vercel/next.js/issues/13969#issuecomment-641540051), and it would fit better on a [plugin](https://github.com/preactjs/next-plugin-preact).. I did this migration first on my project (it worked super well) and realized that people also would dislike having to maintain that kind of code, and would stumble faster on the plugin if it was already on the official example ✨
5 lines
127 B
JavaScript
5 lines
127 B
JavaScript
const withPreact = require('next-plugin-preact')
|
|
|
|
module.exports = withPreact({
|
|
/* regular next.js config options here */
|
|
})
|