2025-01-07 02:29:29 +08:00
|
|
|
import MillionLint from '@million/lint';
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
import path from 'path';
|
|
|
|
import { fileURLToPath } from 'url';
|
|
|
|
import { dirname } from 'path';
|
2025-01-09 03:35:48 +08:00
|
|
|
import dotenv from 'dotenv';
|
2025-01-07 02:29:29 +08:00
|
|
|
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
|
|
const __dirname = dirname(__filename);
|
|
|
|
|
2025-01-08 13:44:13 +08:00
|
|
|
// Load env vars from parent directory in development
|
|
|
|
const envConfig = process.env.NODE_ENV === 'development'
|
|
|
|
? dotenv.config({ path: '../.env' }).parsed
|
|
|
|
: {};
|
|
|
|
|
2025-01-07 02:29:29 +08:00
|
|
|
const nextConfig = {
|
|
|
|
reactStrictMode: false,
|
|
|
|
sassOptions: {
|
|
|
|
includePaths: [path.join(__dirname, 'styles')]
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default MillionLint.next({
|
|
|
|
enabled: false,
|
|
|
|
rsc: true
|
|
|
|
})(nextConfig);
|
|
|
|
|
|
|
|
//export default nextConfig;
|