Skip to content

Commit

Permalink
fix: logger bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BIYUEHU committed Feb 15, 2025
1 parent fbfb90e commit 58f248a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 22 deletions.
13 changes: 0 additions & 13 deletions client/app/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@ export const API_BASE_URL = isDevMode()
? `http://127.0.0.1:${Number((process.env as { PORT: string }).PORT ?? 4200) - 1}/api`
: '/api'

if (typeof process === 'undefined') {
// biome-ignore lint:
;(globalThis as any).process = {
pid: '',
stdout: {
write: console.log.bind(console)
},
stderr: {
write: console.error.bind(console)
}
}
}

export const POSTS_PER_PAGE = 10

export const SUPPORTS_HIGHLIGHT_LANGUAGES = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@angular/platform-server": "^18.2.0",
"@angular/router": "^18.2.0",
"@angular/ssr": "^18.2.8",
"@kotori-bot/logger": "^1.3.3",
"@kotori-bot/logger": "^1.3.4",
"express": "^4.21.2",
"jwt-decode": "^4.0.0",
"markdown-it": "^14.1.0",
Expand Down
52 changes: 44 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 58f248a

Please sign in to comment.