Nacos for nextjs #82334
Unanswered
zhangchen21
asked this question in
Show and tell
Nacos for nextjs
#82334
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To solve thee problem that I need to reach Nacos config both in my client and server component, I've created
next-nacos
, which is a command-line tool that syncs configurations from Nacos, a configuration center, to Next.js projects.It fetches settings via a
.nextnacos.js
config file and writes them to a.env
file asNEXT_PUBLIC_NACOS
, enabling easy access in both client and server components.Simple to install via npm, it integrates smoothly into development workflows for seamless config management.
You will honer me by giving some suggestions.
The git is next-nacos,npm is npm next-nacos.
Beta Was this translation helpful? Give feedback.
All reactions