https://linen.dev logo
Has anyone had any luck with NextJS in
# mirrord-help
r
Has anyone had any luck with NextJS in VScode? Mirrord starts but it never reaches
npm dev -p 3001
Copy code
* Running command: ./node_modules/.bin/next dev -p 3001
* mirrord will target: service/app-dev-service-dc961645, the configuration file was loaded from xxx
* mirrord will run without the mirrord Operator
* env: all remote environment variables will be fetched
* fs: file operations will default to read from the remote
* incoming: incoming traffic will be stolen
* outgoing: forwarding is enabled on TCP and UDP
* dns: DNS will be resolved remotely
* internal proxy: logs will be written to /var/folders/9w/mn_jvst936z08pnj1xsx0by40000gn/T/mirrord-intproxy-1746180472-zLPxJMa.log
⠄ mirrord exec
    ✓ running on latest (3.141.0)!
    ✓ ready to launch process
      ✓ layer extracted
      ✓ operator not found
      ✓ agent pod app-dev/mirrord-agent-kznolrogb1-hnvxt created
      ✓ pod is ready
      ✓ arm64 layer library extracted
    ✓ config summary
launch.json
Copy code
{
  "type": "node",
  "request": "launch",
  "name": "Next.js: Debug with mirrord",
  "runtimeExecutable": "mirrord",
  "runtimeArgs": [
    "exec",
    "--config-file",
    "${workspaceFolder}/.mirrord/mirrord.json",
    "--"
  ],
  "program": "${workspaceFolder}/node_modules/.bin/next",
  "args": [
    "dev",
    "-p",
    "3001"
  ],
  "cwd": "${workspaceFolder}",
  "console": "integratedTerminal"
}
a
Out of curiosity - why are not using the ide extension?
r
That did the trick thanks