File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+
10
+ ## [ 0.4.3] - 2022-07-28
11
+ ### Fixed
12
+ - Error where sometimes in NextJS duplicate entries were saved in the sitemap.
13
+
9
14
## [ 0.4.0] - 2021-07-24
10
15
11
16
### Feature
@@ -66,7 +71,10 @@ First kind of functional version of the package and it also has the ability to h
66
71
- Docs and such
67
72
68
73
[ Unreleased ] : https://github.com/reecem/prismic-sitemap/compare/v0.3.1...HEAD
69
- [ 0.4.0 ] : https://github.com/reecem/prismic-sitemap/compare/v0.4.0...HEAD
74
+ [ 0.4.3 ] : https://github.com/reecem/prismic-sitemap/compare/v0.4.3...HEAD
75
+ [ 0.4.2 ] : https://github.com/reecem/prismic-sitemap/compare/v0.4.2...v0.4.3
76
+ [ 0.4.1 ] : https://github.com/reecem/prismic-sitemap/compare/v0.4.1...v0.4.2
77
+ [ 0.4.0 ] : https://github.com/reecem/prismic-sitemap/compare/v0.4.0...v0.4.1
70
78
[ 0.3.1 ] : https://github.com/reecem/prismic-sitemap/compare/v0.3.1...v0.4.0
71
79
[ 0.3.0 ] : https://github.com/reecem/prismic-sitemap/compare/v0.3.0...v0.3.1
72
80
[ 0.2.0 ] : https://github.com/reecem/prismic-sitemap/compare/v0.2.0
Original file line number Diff line number Diff line change 1
1
const generator = require ( './generator' ) ;
2
2
const path = require ( 'path' ) ;
3
3
4
+ let isRunning = false ;
5
+
4
6
module . exports = ( nextConfig ) => ( {
5
7
...nextConfig ,
6
8
webpack ( config , options ) {
@@ -11,9 +13,11 @@ module.exports = (nextConfig) => ({
11
13
} = options ;
12
14
13
15
14
- if ( isServer ) {
16
+ if ( isServer && isRunning == false ) {
15
17
console . log ( '[Sitemap Generator]: Generating Sitemap' ) ;
16
18
19
+ isRunning = true ;
20
+
17
21
if ( typeof sitemap . publicPath === 'undefined' ) {
18
22
sitemap . publicPath = path . join ( options . dir , 'public' ) ;
19
23
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @reecem/prismic-sitemap" ,
3
- "version" : " 0.4.2 " ,
3
+ "version" : " 0.4.3 " ,
4
4
"description" : " Sitemap Generator for Prismic and Next.js with Minimal Configuration" ,
5
5
"keywords" : [
6
6
" javascript" ,
You can’t perform that action at this time.
0 commit comments