Making Custom Plugins for Next.js #61042
Replies: 2 comments
-
|
Hi @TheMikeyRoss |
Beta Was this translation helpful? Give feedback.
-
|
Next.js doesn’t really have an official plugin API, so the closest pattern people use is a function that wraps and returns the I got really interested in the idea of full-stack features behaving like plugins, so I built an experiment called Better-Stack to explore that approach. Instead of just modifying Even if you don’t need the full system, looking at how it wires the plugin architecture might give you ideas for your own Repo + docs here if you want to dive into the internals: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hi all,
I want to make a template for Next.js but I don't want to go the usual route of a starter template but instead a plugin that I can use in any next.js app by wrapping the next.js configuration in
next.config.jswith my plugin like this:or something like this
and in that config file I can change the copyright text and the social links and other things that I repetitively do for each next.js app I make
How can I go about this? Are there resources I should checkout? any recommendation and suggestions to nudge me in the right direction?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions