@newskit-render/feed 0.25.0 → 0.26.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -87,7 +87,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) =>
87
87
  res,
88
88
  query: req.query,
89
89
  publisher: process.env.PUBLISHER as PublisherGroup,
90
- domain: new URL(process.env.SITE_HOST).host,
90
+ domain: new URL(getHost(req)).host,
91
91
  firstArticleDate: process.env.SITEMAP_FIRST_PUBLICATION_DATE,
92
92
  publicationName: process.env.SITEMAP_PUBLICATION_NAME,
93
93
  customStaticPageCollection: defaultCustomStaticPagesCollection,
@@ -127,7 +127,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) =>
127
127
  newsSitemap({
128
128
  res,
129
129
  publisher: process.env.PUBLISHER as PublisherGroup,
130
- domain: new URL(process.env.SITE_HOST).host,
130
+ domain: new URL(getHost(req)).host,
131
131
  publicationName: process.env.SITEMAP_PUBLICATION_NAME,
132
132
  })
133
133
 
@@ -164,13 +164,13 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) =>
164
164
  res,
165
165
  titeAttributes: {
166
166
  title: 'Demo Site',
167
- link: `${process.env.SITE_HOST}/feed`,
167
+ link: `/feed`,
168
168
  description: 'Newskit Render Demo site',
169
169
  lastBuildDate: new Date().toUTCString(),
170
170
  language: 'en-US',
171
171
  updatePeriod: 'hourly' as UpdatePeriod,
172
172
  updateFrequency: 1,
173
- logoUrl: `${process.env.SITE_HOST}/favicon.ico`,
173
+ logoUrl: `/favicon.ico`,
174
174
  },
175
175
  })
176
176
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/feed",
3
- "version": "0.25.0",
3
+ "version": "0.26.1-alpha.0",
4
4
  "description": "Newskit Render - Feed package",
5
5
  "author": "",
6
6
  "module": "dist/esm/index.js",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@apollo/client": "3.3.7",
28
- "@newskit-render/api": "^0.35.0",
28
+ "@newskit-render/api": "^0.36.1-alpha.0",
29
29
  "cross-fetch": "3.1.5",
30
30
  "graphql": "15.6.0",
31
31
  "lodash.escape": "4.0.1",