Files
immich-power-tools/next.config.mjs
T
2024-09-14 12:17:32 +05:30

21 lines
396 B
JavaScript

/** @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: process.env.BUILD_VERSION || version,
},
};
export default nextConfig;