From 2802797a640b2dae58c531969a2d186e7079156a Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 24 Sep 2024 10:18:28 +0100 Subject: [PATCH] fix log --- next.config.mjs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 91397cd..da632bb 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,8 +1,7 @@ +import { format } from "@formkit/tempo"; import nextBuildId from "next-build-id"; -import path from 'path'; -import { fileURLToPath } from 'url'; -import {format} from '@formkit/tempo' - +import path from "path"; +import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file const __dirname = path.dirname(__filename); // get the name of the directory @@ -22,10 +21,8 @@ const nextConfig = { NEXT_PUBLIC_BUILD_TIME_SHORT: format(new Date(), { date: "short", time: "short", - }) - } + }), + }, }; -console.log(`NEXT_PUBLIC_BUILD_TIME_SHORT: ${nextConfig.env.NEXT_PUBLIC_BUILD_TIME_SHORT}`); - export default nextConfig;