21 lines
511 B
JavaScript
21 lines
511 B
JavaScript
const envSchema = require('./config/schema/env.js');
|
|
const { join } = require('path');
|
|
|
|
const runtimeConfig = envSchema.parse(process.env);
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
module.exports = {
|
|
basePath: process.env.APP_BASE_PATH,
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
experimental: {
|
|
outputFileTracingRoot: join(__dirname, '../../'),
|
|
},
|
|
output: 'standalone',
|
|
publicRuntimeConfig: runtimeConfig,
|
|
reactStrictMode: true,
|
|
serverRuntimeConfig: runtimeConfig,
|
|
swcMinify: true,
|
|
};
|