pollo/next.config.mjs

29 lines
690 B
JavaScript
Raw Permalink Normal View History

2023-04-20 04:20:00 -06:00
// @ts-check
!process.env.SKIP_ENV_VALIDATION && (await import("./src/env.mjs"));
/** @type {import("next").NextConfig} */
const config = {
reactStrictMode: true,
i18n: {
locales: ["en"],
defaultLocale: "en",
},
images: {
domains: ["avatars.githubusercontent.com", "lh3.googleusercontent.com"],
},
2023-06-03 01:35:40 -06:00
webpack: (config, { dev, isServer }) => {
2023-07-10 00:30:57 -06:00
if (!dev && !isServer) {
Object.assign(config.resolve.alias, {
"react/jsx-runtime.js": "preact/compat/jsx-runtime",
react: "preact/compat",
"react-dom/test-utils": "preact/test-utils",
"react-dom": "preact/compat",
});
}
2023-06-03 01:35:40 -06:00
return config;
},
2023-04-20 04:20:00 -06:00
};
2023-06-18 01:01:17 -06:00
export default config;