DEV Community

Discussion on: Render a JSON page in Astro

Collapse
 
jonas_duri profile image
Jonas Duri

Thanks for your post, however, Astro doesn't render an actual JSON file, but an HTML file like:

It was to nice to be true :D

<html><body>{ "foo": "bar" }</body></html>
Enter fullscreen mode Exit fullscreen mode
Collapse
 
dailydevtips1 profile image
Chris Bongers

Yep aware of it, that's why this is the hacky version of it.
They are working on a more permanent solution for different file extensions.