New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

XML not rendering on static site generation

Tim Molloy January 24, 2021 by Tim Molloy

I have this route to generate a RSS feed:

Route::statamic('/blog/feed', 'blog.feed', [ 'content_type' => 'xml', 'layout' => null ]);

I have added the URL to the ssg config but when visiting the URL in the browser it displays text instead of XML. However, it renders correctly as XML when not using the SSG.

Is there something else I need to do? Or is this not supported with the SSG?

Answered by Duncan McClean!
>>>>>>> Answered <<<<<<<
2 Replies
2 Followers