Some checks failed
CI / Lint, Typecheck & Test (push) Failing after 2m11s
- Allow require() in next.config.js (eslint-disable) for both apps - Replace all catch (e: any) with catch (e: unknown) and proper error handling - Remove no-explicit-any: add types (PreviewProduct, ProductImage, Id<addresses>, ProductDetailReview, error payloads) across admin and storefront - Admin: use next/image in ImageUploadSection and ProductImageCarousel; remove unused layout fonts and sidebar imports; fix products page useMemo deps - Storefront: use Link for /sign-in in header actions; fix useAddressMutations and product detail types; remove unused imports/vars and fix useMemo deps Made-with: Cursor
24 lines
648 B
JavaScript
24 lines
648 B
JavaScript
/* eslint-disable @typescript-eslint/no-require-imports -- Next.js config commonly uses require */
|
|
const path = require("path");
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
transpilePackages: ["@repo/convex", "@repo/types", "@repo/utils"],
|
|
turbopack: {
|
|
root: path.join(__dirname, "..", ".."),
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "res.cloudinary.com",
|
|
pathname: "/**",
|
|
},
|
|
],
|
|
},
|
|
// PPR: enable when using Next.js canary. Uncomment and add experimental_ppr to PDP page:
|
|
// experimental: { ppr: "incremental" },
|
|
};
|
|
|
|
module.exports = nextConfig;
|