DEV Community

Discussion on: Render a JSON page in Astro

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
dailydevtips1 profile image
Chris Bongers Author

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.