Kumasy-Marketing/next.config.ts

21 lines
577 B
TypeScript

import path from "node:path";
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
turbopack: {
// A stray package-lock.json sits in a parent directory; pin the root to
// this project so Turbopack does not treat it as a workspace.
root: path.join(__dirname),
},
images: {
// Serve the source PNGs untouched. The device mockups are transparent
// and pixel-aligned; resampling them softens the UI text inside.
unoptimized: true,
},
};
module.exports = {
allowedDevOrigins: ['192.168.2.34'],
}
export default nextConfig;