update config

This commit is contained in:
Ryan Di 2025-03-18 21:54:41 +11:00
parent 828b9287c5
commit 9412fcc6d7
3 changed files with 67 additions and 37 deletions

View file

@ -1,12 +1,13 @@
// next.config.js
/** @type {import('next').NextConfig} */
module.exports = {
distDir: "build",
typescript: {
// Temporarily ignore build errors until the TS config mismatch is resolved
ignoreBuildErrors: true,
},
// Transpile sibling/parent packages in a monorepo
transpilePackages: ["../"],
webpack(config, { isServer }) {
config.distDir = "build";
config.typescript = {
ignoreBuildErrors: true,
};
config.transpileModules = ["../"];
if (!isServer) {
config.module.rules.push({
test: /\.worker\.(js|ts)$/,

View file

@ -20,6 +20,7 @@
"@types/react": "19.0.10",
"@types/react-dom": "19.0.4",
"path2d-polyfill": "2.0.1",
"typescript": "^5"
"typescript": "^5",
"worker-loader": "3.0.8"
}
}