File tree 3 files changed +9
-14
lines changed
3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' nextra ' : patch
3
+ ---
4
+
5
+ Fix TypeError: \_ jsx is not a function for remote content on development
6
+ environment
Original file line number Diff line number Diff line change @@ -54,20 +54,7 @@ export function Head(): ReactElement {
54
54
name = "viewport"
55
55
content = "width=device-width, initial-scale=1.0, viewport-fit=cover"
56
56
/>
57
- < style > { `
58
- :root {
59
- --nextra-primary-hue: ${ lightHue } deg;
60
- --nextra-primary-saturation: ${ lightSaturation } %;
61
- --nextra-navbar-height: 4rem;
62
- --nextra-menu-height: 3.75rem;
63
- --nextra-banner-height: 2.5rem;
64
- }
65
-
66
- .dark {
67
- --nextra-primary-hue: ${ darkHue } deg;
68
- --nextra-primary-saturation: ${ darkSaturation } %;
69
- }
70
- ` } </ style >
57
+ < style > { `:root{--nextra-primary-hue:${ lightHue } deg;--nextra-primary-saturation:${ lightSaturation } %;--nextra-navbar-height:4rem;--nextra-menu-height:3.75rem;--nextra-banner-height:2.5rem;}.dark{--nextra-primary-hue:${ darkHue } deg;--nextra-primary-saturation:${ darkSaturation } %;}` } </ style >
71
58
{ head }
72
59
</ NextHead >
73
60
)
Original file line number Diff line number Diff line change @@ -215,6 +215,8 @@ export async function compileMdx(
215
215
format,
216
216
outputFormat,
217
217
providerImportSource : 'nextra/mdx' ,
218
+ // Fix TypeError: _jsx is not a function for remote content
219
+ development : process . env . NODE_ENV === 'development' ,
218
220
remarkPlugins : [
219
221
...( remarkPlugins || [ ] ) ,
220
222
remarkMermaid , // should be before remarkRemoveImports because contains `import { Mermaid } from ...`
You can’t perform that action at this time.
0 commit comments