We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453ceb5 commit 1389051Copy full SHA for 1389051
2 files changed
server/utils/feeds.ts
@@ -4,7 +4,7 @@ import { posts } from '#blog/posts'
4
let feed: Feed | undefined = undefined
5
6
/**
7
- * Lazily creates and returns object that serializes into RSS, Atom and JSON
+ * Creates, caches and returns object that serializes into RSS, Atom and JSON
8
* feeds to be served on the website.
9
*
10
* @returns feed object that serializes into different feed formats
test/e2e/feeds.spec.ts
@@ -45,6 +45,8 @@ test.describe('Blog feeds', () => {
45
}, href)
46
47
expect(contentType).toBe(feed.contentType)
48
+ // Make sure feeds are available to browser-based readers, see
49
+ // https://www.blogsareback.com/guides/enable-cors
50
expect(corsHeader).toBe('*')
51
})
52
}
0 commit comments