@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.
- package/dist/build.js +1 -1
- 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.
|
|
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');
|