Skip to content

Commit 8b74f95

Browse files
committed
chore: update package.json scripts and remove file existence check in canvasFactory
1 parent 3da0a22 commit 8b74f95

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

bun.lockb

800 Bytes
Binary file not shown.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build:server": "bun run build:data && cd server && bun run build",
99
"build:web": "cd ./web && bun run build",
1010
"start:server": "cd ./server && bun run start",
11-
"start:web": "cd ./web && bun run start",
11+
"start:server:prod": "cd ./server && bun run start",
12+
"start:web:prod": "cd ./web && bun run start",
1213
"dev": "concurrently --success first -n \"server,web\" --prefix-colors \"cyan,magenta\" --prefix \"{name} {time}\" \"bun run dev:server\" \"bun run dev:web\"",
1314
"dev:web": "cd ./web && bun run dev",
1415
"dev:server": "cd ./server && bun run start:dev",

shared/features/thumbnail/canvasFactory.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ if (typeof document === 'undefined') {
3939
const workingDir = process.cwd();
4040
const fullPath = path.join(workingDir, filename.split('/').join(path.sep));
4141

42-
if (!Bun.file(fullPath).exists()) {
43-
throw new Error(`File not found: ${fullPath}`);
44-
} else {
45-
console.log(`File found: ${fullPath}`);
46-
}
47-
4842
return 'file://' + fullPath;
4943
};
5044

0 commit comments

Comments
 (0)