I cloned the source code (master branch) from GitHub and ran pnpm install and pnpm build. When I run n8n at http://localhost:5678 with pnpm start , it successfully accesses it.
Now, I want to run it locally at the http://localhost:5678/my_n8n subdirectory, but I’m not sure how to change it. I saw the documentation mentioning N8N_PATH: The path n8n deploys to.
I didn’t use docker because my development environment doesn’t allow me to use docker, so I just cloned the source code and then ran it locally using
pnpm install
pnpm build
pnpm start**
But I don’t understand what file I should modify.**
Could someone please tell me which configuration file I should modify?
I’ve tried setting the environment variables like this and then running pnpm start again to start the project:

then,show the info :Editor is now accessible via: http://localhost:5678/my_n8n
But when I open this address, the page is blank and the console reports an error:
It seems that the static files path cannot be loaded
Information on your n8n setup
- n8n version: 1.108.0 master branch
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):pnpm start
- Operating system:windows

