Skip to content

Commit

Permalink
Fix test by using null if NEXT_PUBLIC_APP_BUILD_TIME is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadorequest committed Dec 30, 2020
1 parent 38713b4 commit ab06f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const status = async (req: NextApiRequest, res: NextApiResponse): Promise
appName: process.env.NEXT_PUBLIC_APP_NAME,
appRelease: process.env.NEXT_PUBLIC_APP_VERSION_RELEASE,
appBuildTime: process.env.NEXT_PUBLIC_APP_BUILD_TIME,
appBuildTimeISO: (new Date(process.env.NEXT_PUBLIC_APP_BUILD_TIME)).toISOString(),
appBuildTimeISO: (new Date(process.env.NEXT_PUBLIC_APP_BUILD_TIME || null)).toISOString(),
appBuildTimestamp: process.env.NEXT_PUBLIC_APP_BUILD_TIMESTAMP,
appBuildId: process.env.NEXT_PUBLIC_APP_BUILD_ID,
nodejs: process.version,
Expand Down

1 comment on commit ab06f8e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.