mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 03:32:14 +10:00
fix: errors
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
import { env } from '@documenso/lib/utils/env';
|
||||
|
||||
export const appLog = (context: string, ...args: Parameters<typeof console.log>) => {
|
||||
if (env('NEXT_DEBUG') === 'true') {
|
||||
console.log(`[${context}]: ${args[0]}`, ...args.slice(1));
|
||||
}
|
||||
// if (env('NEXT_DEBUG') === 'true') {
|
||||
console.log(`[${context}]: ${args[0]}`, ...args.slice(1));
|
||||
// }
|
||||
};
|
||||
|
||||
export class AppLogger {
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
type EnvironmentVariable = keyof NodeJS.ProcessEnv;
|
||||
|
||||
export const env = (variable: EnvironmentVariable | (string & {})): string | undefined => {
|
||||
export const env = (variable: EnvironmentVariable | (string & object)): string | undefined => {
|
||||
// console.log({
|
||||
// ['typeof window']: typeof window,
|
||||
// ['process.env']: process.env,
|
||||
|
||||
Reference in New Issue
Block a user