@webjourney/vite-plugins 1.2.14 → 1.2.15

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/dist/build.js +1 -1
  2. package/package.json +1 -1
package/dist/build.js CHANGED
@@ -226,7 +226,7 @@ async function prerender(projectRoot) {
226
226
  const routes = await extractRoutes(projectRoot);
227
227
  console.log(` Found ${routes.length} route(s): ${routes.join(', ')}`);
228
228
  // Generate sitemap
229
- const hostname = process.env.__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS || 'http://127.0.0.1';
229
+ const hostname = process.env.WEBJOURNEY_PROJECT_ID ? `https://${process.env.WEBJOURNEY_PROJECT_ID}.web.wbj.dev` : 'http://127.0.0.1';
230
230
  const sitemap = generateSitemap(routes, hostname);
231
231
  fs.writeFileSync(toAbsolute('dist/sitemap.xml'), sitemap);
232
232
  console.log(' Generated: sitemap.xml');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webjourney/vite-plugins",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "Vite plugins for Webjourney WYSIWYG editing",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",