tech-interview-handbook/apps/portal/next.config.mjs

22 lines
519 B

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: {
newNextLinkBehavior: true,
},
reactStrictMode: true,
swcMinify: true,
});