Files
gridpilot.gg/apps/website/next.config.mjs
2025-12-15 13:34:27 +01:00

38 lines
783 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Fix for Next.js 13+ Turbopack in monorepos to correctly identify the workspace root
outputFileTracingRoot: '../../',
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'placehold.co',
},
{
protocol: 'https',
hostname: 'picsum.photos',
},
],
},
typescript: {
ignoreBuildErrors: false,
},
transpilePackages: [
'@gridpilot/racing',
'@gridpilot/identity',
'@gridpilot/social',
'@gridpilot/testing-support',
],
webpack: (config) => {
config.module.rules.push({
test: /\.(mp4|webm)$/,
type: 'asset/resource',
});
return config;
},
};
export default nextConfig;