diff --git a/apps/dashboard/next.config.ts b/apps/dashboard/next.config.ts index 58a70941593..1f80c87505d 100644 --- a/apps/dashboard/next.config.ts +++ b/apps/dashboard/next.config.ts @@ -192,14 +192,18 @@ function getConfig(): NextConfig { ...baseNextConfig, experimental: { webpackBuildWorker: true, + webpackMemoryOptimizations: true, }, // @ts-expect-error - this is a valid option - webpack: (config, { dev }) => { - if (config.cache && !dev) { + webpack: (config) => { + if (config.cache) { config.cache = Object.freeze({ type: "filesystem", maxMemoryGenerations: 0, }); + config.cache = Object.freeze({ + type: "memory", + }); } config.externals.push("pino-pretty"); config.module = { diff --git a/apps/dashboard/src/components/contract-components/contract-publish-form/abi-selector.tsx b/apps/dashboard/src/components/contract-components/contract-publish-form/abi-selector.tsx index 01f5629a306..7f932366ab9 100644 --- a/apps/dashboard/src/components/contract-components/contract-publish-form/abi-selector.tsx +++ b/apps/dashboard/src/components/contract-components/contract-publish-form/abi-selector.tsx @@ -32,14 +32,12 @@ export const AbiSelector: React.FC = ({ options={options} defaultValue={options.find((o) => o.value === defaultValue)} chakraStyles={{ - // @ts-expect-error - this works fine container: (provided) => ({ ...provided, width: "full", }), }} value={options.find((o) => o.value === value)} - // @ts-expect-error - this works fine onChange={(selectedFn) => { if (selectedFn) { onChange((selectedFn as { label: string; value: string }).value); diff --git a/apps/dashboard/src/components/contract-components/published-contract/markdown-renderer.tsx b/apps/dashboard/src/components/contract-components/published-contract/markdown-renderer.tsx index 63619c9e737..72adc6ccd1c 100644 --- a/apps/dashboard/src/components/contract-components/published-contract/markdown-renderer.tsx +++ b/apps/dashboard/src/components/contract-components/published-contract/markdown-renderer.tsx @@ -91,7 +91,7 @@ export const MarkdownRenderer: React.FC<{ a: (props) => ( + {/* @ts-expect-error - TODO: fix this */} = ({ }))} placeholder="Select industry" isRequired - // @ts-expect-error - this works fine onChange={(value) => { if (value?.value) { form.setValue("superchain_verticals", value.value); @@ -222,14 +221,10 @@ export const ApplyForOpCreditsForm: React.FC = ({ label: chain === "Optimism" ? "OP Mainnet" : chain, value: chain, }))} - // @ts-expect-error - this works fine onChange={(values) => { form.setValue( "superchain_chain", - values - // @ts-expect-error - this works fine - .map(({ value }) => value) - .join(";"), + values.map(({ value }) => value).join(";"), ); }} isMulti