File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ function reviveNodeOnClient(key, val) {
55
55
56
56
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57
57
// ~~~~ IMPORTANT: BUMP THIS IF YOU CHANGE ANY CODE BELOW ~~~
58
- const DISK_CACHE_BREAKER = 2 ;
58
+ const DISK_CACHE_BREAKER = 3 ;
59
59
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60
60
61
61
// Put MDX output into JSON for client.
@@ -207,7 +207,7 @@ export async function getStaticPaths() {
207
207
// 'foo/bar/baz.md' -> ['foo', 'bar', 'baz']
208
208
// 'foo/bar/qux/index.md' -> ['foo', 'bar', 'qux']
209
209
function getSegments ( file ) {
210
- let segments = file . slice ( 0 , - 3 ) . split ( '/' ) ;
210
+ let segments = file . slice ( 0 , - 3 ) . replace ( / \\ / g , '/' ) . split ( '/' ) ;
211
211
if ( segments [ segments . length - 1 ] === 'index' ) {
212
212
segments . pop ( ) ;
213
213
}
You can’t perform that action at this time.
0 commit comments