⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
use correct protocol
Isaac Wiseaecb90b4a471
diff --git a/pages/public/collections/[id]/rss.tsx b/pages/public/collections/[id]/rss.tsxindex 00e8e2f7..1cc793e4 100644--- a/pages/public/collections/[id]/rss.tsx+++ b/pages/public/collections/[id]/rss.tsx@@ -33,8 +33,9 @@ export const getServerSideProps: GetServerSideProps = async ({ params, res, reqconst host = req.headers.host;- const siteUrl = `https://${host}/collection/${data.id}`;- const feedUrl = `https://${host}/collections/${data.id}/rss`;+ const protocol = req.headers['x-forwarded-proto'] || (req.socket ? 'https' : 'http');+ const siteUrl = `${protocol}://${host}/public/collections/${data.id}`;+ const feedUrl = `${protocol}://${host}/public/collections/${data.id}/rss`;const feed = new RSS({title: data.name,