Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1de921f

Browse files
committed
fix: puppeteer
1 parent2fe2bb3 commit1de921f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

‎apps/api/src/controllers/record/records-controller.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export class RecordsController {
293293

294294
try{
295295
constargs=process.env.IS_USING_ROOT_USER==="true" ?["--no-sandbox"] :[];
296-
constbrowser=awaitpuppeteer.launch({ args,headless:"new"});
296+
constbrowser=awaitpuppeteer.launch({ args,headless:true});
297297
constpage=awaitbrowser.newPage();
298298

299299
page.setContent(template,{waitUntil:"domcontentloaded"});
@@ -388,7 +388,7 @@ export class RecordsController {
388388

389389
try{
390390
constargs=process.env.IS_USING_ROOT_USER==="true" ?["--no-sandbox"] :[];
391-
constbrowser=awaitpuppeteer.launch({ args,headless:"new"});
391+
constbrowser=awaitpuppeteer.launch({ args,headless:true});
392392
constpage=awaitbrowser.newPage();
393393

394394
page.setContent(template,{waitUntil:"domcontentloaded"});

‎scripts/copy-env.mjs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ const [, , ...args] = process.argv;
4545
constcopyToClient=hasArg("--client");
4646
constcopyToApi=hasArg("--api");
4747

48+
console.log("Copying .env to client and/or api...");
49+
50+
if(!copyToClient&&!copyToApi){
51+
console.log("No --client or --api flag provided. Exiting.");
52+
process.exit(0);
53+
}
54+
4855
letENV_FILE_PATH=join(process.cwd(),".env");
4956

5057
if(ENV_FILE_PATH.endsWith("/apps/client/.env")||ENV_FILE_PATH.endsWith("/apps/api/.env")){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp