Forge tunnel regularly fails after half an hour of inactivity

Observed behavior:

  1. Run ‘forge tunnel’. Everything works fine.
  2. Step away from PC for half an hour.
  3. Refresh page and forge app fails to load. Terminal logs for forge tunnel show:
    Received proxy request. Serving file index.html for resource main from specified address http://localhost:3000
    CSP violation detected for ‘connect-src’ while serving content at http://localhost:8001/
  4. Stop forge tunnel and start again. Works fine.

My manifest has:

resources:
key: main
path: static/spa/build
tunnel:
port: 3000

external:
fetch:
client:
- “*.localhost:3000”

1 Like