feat: added version

Signed-off-by: Varun Raj <mailme@varunraj.in>
This commit is contained in:
Varun Raj committed 2024-09-07 20:24:18 +05:30
1 parent 610cd0e899
commit 574f83615e
5 files changed
+23 -7

No files matched your search

+11 -1
View File
@@ -1,10 +1,20 @@
/** @type {import('next').NextConfig} */
import { readFileSync } from 'fs';
const { version } = JSON.parse(readFileSync('./package.json', 'utf-8'));
console.log(`Version: ${version}`);
const nextConfig = {
reactStrictMode: false,
output: 'standalone',
images: {
unoptimized: true,
}
},
env: {
VERSION: version,
},
};
export default nextConfig;