Files
captable/next.config.js
T

44 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* 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;