Hi all, I’m trying out netlify dev
so I can try out functions locally, but getting this:
➜ $ netlify dev
◈ Netlify Dev ◈
◈ No app server detected and no "command" specified
◈ Using current working directory
◈ Unable to determine public folder to serve files from
◈ Setup a netlify.toml file with a [dev] section to specify your dev server settings.
◈ See docs at: https://cli.netlify.com/netlify-dev#project-detection
◈ Running static server from "my-proj"
◈ Server listening to 3999
┌─────────────────────────────────────────────────┐
│ │
│ ◈ Server now ready on http://localhost:8888 │
│ │
└─────────────────────────────────────────────────┘
error while proxying request: connect ECONNREFUSED 127.0.0.1:64885
That last line ECONNREFUSED is happening when I make a request to my function (at ./netlify/functions/foo
). I’m not sure which network request is failing…the one my function is making to a 3rd party server, or the one from html/js to the function itself. Is there a way to get more verbose output? That port number doesn’t ring a bell, so I’m not sure what’s going on.
I’m not sure if some other configuration is required? I don’t have a build step. Just an index.html
file.