44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||
/**
|
||
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
|
||
* for Docker builds.
|
||
*/
|
||
await import("./src/env.js");
|
||
|
||
/** @type {import("next").NextConfig} */
|
||
const config = {
|
||
output: process.env.DOCKER_OUTPUT ? "standalone" : undefined,
|
||
images: {
|
||
remotePatterns: [
|
||
{
|
||
hostname: "randomuser.me",
|
||
protocol: "https",
|
||
},
|
||
{
|
||
hostname: "avatars.githubusercontent.com",
|
||
protocol: "https",
|
||
},
|
||
],
|
||
},
|
||
webpack: (config) => {
|
||
/**
|
||
* Critical: prevents " ⨯ ./node_modules/canvas/build/Release/canvas.node
|
||
* Module parse failed: Unexpected character '�' (1:0)" error
|
||
*/
|
||
config.resolve.alias.canvas = false;
|
||
|
||
return config;
|
||
},
|
||
experimental: {
|
||
instrumentationHook: true,
|
||
},
|
||
eslint: {
|
||
// Warning: This allows production builds to successfully complete even if
|
||
// your project has ESLint errors.
|
||
// ignoreDuringBuilds: true,
|
||
},
|
||
};
|
||
|
||
export default config;
|