Support Forums

Site is running in local environment, but does not work after deployment(404 error)

when i do test it with netlify dev it fires function key without any errors

after manual deployment(drag and drop folder)
after pressing button i’m getting 2 errrors
index):22 GET https://clever-liskov-abbc0f.netlify.app/.netlify/functions/key 404
VM99:1 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

Welcome to the forums @timuptocreate

Functions are not available when using Drag and Drop deploy. If you want to use functions, you will need to deploy from git and using Netlify CLI.


Very surprising. and by googling that issue i was not succesfull in Mentioning that solution.
But it also not logical too that Manual deployment is different from others ways
anyway i did
netlify deploy and that worked
Thanks a lot coelmay

1 Like