27 lines
668 B
JavaScript
27 lines
668 B
JavaScript
import envSchema from './config/schema/env.js';
|
|
import { dirname, join } from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
|
|
const runtimeConfig = envSchema.parse(process.env);
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
basePath: process.env.APP_BASE_PATH,
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
experimental: {
|
|
outputFileTracingRoot: join(__dirname, '../../'),
|
|
},
|
|
output: 'standalone',
|
|
publicRuntimeConfig: runtimeConfig,
|
|
reactStrictMode: true,
|
|
serverRuntimeConfig: runtimeConfig,
|
|
swcMinify: true,
|
|
};
|
|
|
|
export default nextConfig;
|