fix: raise Continue host body limit
This commit is contained in:
@@ -143,7 +143,7 @@ describe('ContinueHostAdapter', () => {
|
|||||||
'isHeadless:e.interactivePermissions?!1:e.headless'
|
'isHeadless:e.interactivePermissions?!1:e.headless'
|
||||||
)
|
)
|
||||||
expect(bundle).toContain('GOODBUDDY_CONTINUE_HOST_TOKEN')
|
expect(bundle).toContain('GOODBUDDY_CONTINUE_HOST_TOKEN')
|
||||||
expect(bundle).toContain('json({limit:"20mb"})')
|
expect(bundle).toContain('json({limit:"100mb"})')
|
||||||
expect(bundle).toContain('listen(i,"127.0.0.1"')
|
expect(bundle).toContain('listen(i,"127.0.0.1"')
|
||||||
expect(bundle).toContain(
|
expect(bundle).toContain(
|
||||||
'GOODBUDDY_DISABLE_CONTINUE_UPDATES'
|
'GOODBUDDY_DISABLE_CONTINUE_UPDATES'
|
||||||
|
|||||||
@@ -924,7 +924,7 @@ export class ContinueHostAdapter {
|
|||||||
patched = replaceExactly(
|
patched = replaceExactly(
|
||||||
patched,
|
patched,
|
||||||
serverMarker,
|
serverMarker,
|
||||||
'let j=(0,atn.default)();if(!process.env.GOODBUDDY_CONTINUE_HOST_TOKEN)throw new Error("Missing GoodBuddy host token");j.use((we,Te,ue)=>{we.headers.authorization===`Bearer ${process.env.GOODBUDDY_CONTINUE_HOST_TOKEN}`?ue():Te.status(401).json({error:"Unauthorized"})}),j.use(atn.default.json({limit:"20mb"})),j.post("/goodbuddy/question-answer",(we,Te)=>{let{requestId:ue,answer:ce,isCustomAnswer:de}=we.body??{};typeof ue==="string"&&ue.length>0&&typeof ce==="string"&&ce.length>0?Lbe.answerQuestion(ue,ce,de===!0)?Te.json({success:!0}):Te.status(404).json({error:"Question not pending"}):Te.status(400).json({error:"Invalid question answer"})}),j.get("/state"'
|
'let j=(0,atn.default)();if(!process.env.GOODBUDDY_CONTINUE_HOST_TOKEN)throw new Error("Missing GoodBuddy host token");j.use((we,Te,ue)=>{we.headers.authorization===`Bearer ${process.env.GOODBUDDY_CONTINUE_HOST_TOKEN}`?ue():Te.status(401).json({error:"Unauthorized"})}),j.use(atn.default.json({limit:"100mb"})),j.post("/goodbuddy/question-answer",(we,Te)=>{let{requestId:ue,answer:ce,isCustomAnswer:de}=we.body??{};typeof ue==="string"&&ue.length>0&&typeof ce==="string"&&ce.length>0?Lbe.answerQuestion(ue,ce,de===!0)?Te.json({success:!0}):Te.status(404).json({error:"Question not pending"}):Te.status(400).json({error:"Invalid question answer"})}),j.get("/state"'
|
||||||
)
|
)
|
||||||
patched = replaceExactly(
|
patched = replaceExactly(
|
||||||
patched,
|
patched,
|
||||||
|
|||||||
Reference in New Issue
Block a user