Skip to content

Commit a960b85

Browse files
committed
republish projects in production mode
1 parent ebd1251 commit a960b85

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
run: cd publish && npm install
2222
- name: publish
2323
run: npm run publish
24-
2524
env:
25+
NODE_ENV: production
2626
CLIENT_ID: ${{ secrets.CLIENT_ID }}
2727
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
2828
CLIENT_EMAIL: ${{ secrets.CLIENT_EMAIL }}

publish/src/domain/mdx-processor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export class MDXProcessor {
125125
remarkPlugins: this.remarkPlugins as any,
126126
rehypePlugins: this.rehypePlugins as any,
127127
format: "mdx",
128+
development: false, // use production jsx/jsxs so consumers don't get TypeError: jsxDEV
128129
},
129130
blockJS: false,
130131
});

0 commit comments

Comments
 (0)