If Functions are working, visiting /chat in the URL bar should return:
/chat
{"test":"hello from function","method":"GET"}
If you instead see this page again, Functions are NOT being deployed.
Test /chat from JS
click button ↑