parent
15d35b5817
commit
2802797a64
@ -1,8 +1,7 @@
|
|||||||
|
import { format } from "@formkit/tempo";
|
||||||
import nextBuildId from "next-build-id";
|
import nextBuildId from "next-build-id";
|
||||||
import path from 'path';
|
import path from "path";
|
||||||
import { fileURLToPath } from 'url';
|
import { fileURLToPath } from "url";
|
||||||
import {format} from '@formkit/tempo'
|
|
||||||
|
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
|
const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
|
||||||
const __dirname = path.dirname(__filename); // get the name of the directory
|
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(), {
|
NEXT_PUBLIC_BUILD_TIME_SHORT: format(new Date(), {
|
||||||
date: "short",
|
date: "short",
|
||||||
time: "short",
|
time: "short",
|
||||||
})
|
}),
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(`NEXT_PUBLIC_BUILD_TIME_SHORT: ${nextConfig.env.NEXT_PUBLIC_BUILD_TIME_SHORT}`);
|
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
Reference in New Issue
Block a user