I have a couple of scripts that I want to run outside of the NextJS server process, and the scripts live in the same directory. This is how you load up the environment.
For example, test/image.mjs:
| |
And then
| |
for scripts
I have a couple of scripts that I want to run outside of the NextJS server process, and the scripts live in the same directory. This is how you load up the environment.
For example, test/image.mjs:
| |
And then
| |