How to pass custom arg to "next build" CLI command
Unanswered
American black bear posted this in #help-forum
American black bearOP
I want to pass the latest git tag to my application at build time.
I get the following error
Does nextjs support this ? How can i pass custom build args
next build --NEXT_PUBLIC_APP_VERSION=123I get the following error
Unknown or unexpected option: --NEXT_PUBLIC_APP_VERSIONDoes nextjs support this ? How can i pass custom build args
4 Replies
does this answer your question?
American black bearOP
@Cape lion it provides a workaround for my needs
thanks