mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 18:58:17 +00:00
Fix
This commit is contained in:
@@ -55,7 +55,7 @@ function reviveNodeOnClient(key, val) {
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// ~~~~ IMPORTANT: BUMP THIS IF YOU CHANGE ANY CODE BELOW ~~~
|
||||
const DISK_CACHE_BREAKER = 6;
|
||||
const DISK_CACHE_BREAKER = 7;
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Put MDX output into JSON for client.
|
||||
@@ -112,7 +112,7 @@ export async function getStaticProps(context) {
|
||||
// This will break the prepareMDX() call below.
|
||||
let mdxWithFakeImports =
|
||||
mdx +
|
||||
'\n' +
|
||||
'\n\n' +
|
||||
mdxComponentNames
|
||||
.map((key) => 'import ' + key + ' from "' + key + '";\n')
|
||||
.join('\n');
|
||||
|
||||
Reference in New Issue
Block a user