I’ve got a project where I had some redirect rules set up to handle some “functions” endpoints. It worked well for a while but when I updated the CLI version recently it seems to have stopped.
I can hit a function path directly, as in
http://localhost:8888/.netlify/functions/dboxDecks/dboxDecks.js and it will work fine.
However when I try to go to its redirect ‘from’ path
http://localhost:8888/decks it simply serves the root, index file of the project .
I should point out that when I used to run
netlify dev a secondary terminal window launched and displayed some port information. Now this does not happen.
Here’s my netlify.toml file:
[build] publish = "build" functions = "functions" [[redirects]] from = "/generate" to = "/.netlify/functions/generateSignature/generateSignature.js" status = 200 [[redirects]] from = "/decks" to = "/.netlify/functions/dboxDecks/dboxDecks.js" status = 200 [[redirects]] from = "/slides" to = "/.netlify/functions/dboxSlides/dboxSlides.js" status = 200 [[redirects]] from = "/thumbnail" to = "/.netlify/functions/dboxDeckThumbnail/dboxDeckThumbnail.js" status = 200
Anyone know what’s going on?