Files
riotpiao.com/next.config.js
T
Story Crater Bot aa67c4551d
Build & Push Portfolio Image / build-push (push) Successful in 2m42s
feat: show commit SHA in footer with link to repo commit
2026-09-01 17:03:37 -07:00

15 lines
379 B
JavaScript

const { execSync } = require('child_process');
const commitSha = process.env.COMMIT_SHA
|| (() => { try { return execSync('git rev-parse --short HEAD').toString().trim(); } catch { return 'dev'; } })();
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
env: {
NEXT_PUBLIC_COMMIT_SHA: commitSha,
},
};
module.exports = nextConfig;