Skip to content

Commit

Permalink
fix: sitemap folder
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Oct 17, 2020
1 parent bc209ff commit 4832b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/nextjs-plugin/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = ({
if (process.env.NODE_ENV === 'production' && store.config.siteMap) {
const sitemap = getSiteMap(store);
const sitemapname = path.join(
config.distFolder as string,
path.resolve(config.staticFolder as string, '..'),
'sitemap.xml',
);
fs.writeFileSync(sitemapname, sitemap, 'utf8');
Expand Down

0 comments on commit 4832b43

Please sign in to comment.