personal-website/next.config.js

19 lines
440 B
JavaScript
Raw Normal View History

2023-12-01 02:22:05 +00:00
const nextBuildId = require("next-build-id");
2023-11-30 23:40:28 +00:00
/** @type {import('next').NextConfig} */
2023-12-01 02:22:05 +00:00
const nextConfig = {
env: {
NEXT_PUBLIC_BUILD_ID:
process.env.GIT_REV || nextBuildId.sync({ dir: __dirname }),
NEXT_PUBLIC_BUILD_TIME: new Date().toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
hour: "numeric",
minute: "numeric",
}),
},
};
2023-11-30 23:40:28 +00:00
2023-12-01 02:22:05 +00:00
module.exports = nextConfig;