Files
riotpiao.com/next.config.js
T

15 lines
379 B
JavaScript
Raw Normal View History

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