Next.js Discord

Discord Forum

Create a config for a package

Unanswered
Tan posted this in #help-forum
Open in Discord
Avatar
TanOP
Hello, I'm trying to make a package for Next.js, but I don't know how to make a config for the user, like a next.config.mjs but for my package, I found ways with .json files or using a configure function that will store the data in a variable, but the variable seems to not be shared among every tasks, like in my middleware. The only thing I want is a way to create a config that works everywhere in my package and the project using the package.

0 Replies