Files
2024-06-25 09:32:11 +08:00

22 lines
515 B
JavaScript

import { env } from './src/env/server.mjs';
/**
* Don't be scared of the generics here.
* All they do is to give us autocompletion when using this.
*
* @template {import('next').NextConfig} T
* @param {T} config - A generic parameter that flows through to the return type
* @constraint {{import('next').NextConfig}}
*/
function defineNextConfig(config) {
return config;
}
export default defineNextConfig({
experimental: {
esmExternals: 'loose',
},
reactStrictMode: true,
swcMinify: true,
});