File tree Expand file tree Collapse file tree
apps/workers/v0/src/routers/read Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const readGETHandler = authed
1919 ) ;
2020
2121 // WORKAROUND: Return a Blob with text/markdown MIME type to bypass ORPC's JSON serialization
22- return new Blob ( [ result ] , { type : 'text/markdown' } ) ;
22+ return new Blob ( [ result ] , { type : 'text/markdown; charset=utf-8 ' } ) ;
2323 } catch ( error ) {
2424 const errorMessage =
2525 error instanceof Error ? error . message : 'Unknown error' ;
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ export const readGETContract = readOC
2929 . output (
3030 z
3131 . instanceof ( Blob )
32- . refine ( ( blob ) => blob . type === 'text/markdown' , {
33- message : 'Blob must have text/markdown MIME type' ,
32+ . refine ( ( blob ) => blob . type === 'text/markdown; charset=utf-8 ' , {
33+ message : 'Blob must have text/markdown; charset=utf-8 MIME type' ,
3434 } )
3535 . meta ( {
3636 description : 'The page markdown content' ,
You can’t perform that action at this time.
0 commit comments