Creating Next.js build time plugins
Unanswered
Rule posted this in #help-forum
RuleOP
Hi. I want to extend Next.js so that I could add something like this into the page files and read it during the build time:
This would be something similar to
Where should I start? Would you recommend creating a webpack or swc plugin?
export const customVariable = {};This would be something similar to
export const metadataWhere should I start? Would you recommend creating a webpack or swc plugin?