GET https://6367dde78c085d64a6d8798f--delightful-dango-35c0fa.netlify.app/__data.json 404
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Searched a lot but didn’t managed to resolve the issue.
No idea what __data.json is, it’s not in the project, but causing the error here.
Sveltekit and adapter-netlify are updated to the latest version.
In the project I have a couple of API calls using Fetch, but just one uses ‘Content-type’: ‘application/x-www-form-urlencoded’ in the headers. so I’m not sure if that’s parsing HTML instead of JSON error.
The above are the things I found from search and didn’t help.
I promise I’ve switched between static and netlify adapter a few times since last day - as simple as uncommenting netlify adapter and commenting static one -, then built an uploaded every build, and none worked this time changing the adapter to netlify it worked !!
But in netlify docs I think it said, netlify would work with static adapter as well, am I right?