I feel like I've been here before, so apologies if this has been asked and answered, but I did a search through the forum for 'NextJS' questions and didn't see mine.
I have a NextJS project where I need to run a custom script (to download a GraphQL schema) before launch. I want to debug some Redux actions, but when I click on the breakpoint bar on the left in the WS code the breakpoint symbols remain red, never turning green, and the breakpoints are never hit.
I tried adding my browser to the tab "Browser/Live Edit" in the Node config, but that didn't do anything, so I set up the compound debug config.
In the Node config I'm runing the script 'dev' in 'package.json'
"dev": "npm-run-all -s build-fragment startserver",
"startserver": "next -p 8080",
"build": "next build",
"start": "next start",
"build-fragment": "node src/schemaQuery.js"
When I run the compound debug config, the server starts, the browser opens, first with "Can't find the site" screen but then, after I reload, the correct page. However, no debug points are hit.
Where am I going wrong?