diff --git a/client/next.config.js b/client/next.config.js index 47c9e05..ef1e295 100644 --- a/client/next.config.js +++ b/client/next.config.js @@ -8,23 +8,24 @@ const nextConfig = { }, future: { webpack5: true }, - // (Optional) Export as a static site - // See https://nextjs.org/docs/pages/building-your-application/deploying/static-exports#configuration - // output: 'export', // Feel free to modify/remove this option + // (Optional) Export as a static site + // See + // https://nextjs.org/docs/pages/building-your-application/deploying/static-exports#configuration + // output: 'export', // Feel free to modify/remove this option - // Override the default webpack configuration - webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { - // See https://webpack.js.org/configuration/resolve/#resolvealias - config.resolve.alias = { - ...config.resolve.alias, - "sharp$": false, - "onnxruntime-node$": false, - } + // Override the default webpack configuration + webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { + // See https://webpack.js.org/configuration/resolve/#resolvealias + config.resolve.alias = { + ...config.resolve.alias, + sharp$: false, + "onnxruntime-node$": false, + }; - config.resolve.alias.canvas = false - config.resolve.alias.encoding = false - return config; + config.resolve.alias.canvas = false; + config.resolve.alias.encoding = false; + return config; }, -} +}; -module.exports = nextConfig +module.exports = nextConfig; diff --git a/client/src/app/api/upload/route.ts b/client/src/app/api/upload/route.ts index 11f92c8..5c71d49 100644 --- a/client/src/app/api/upload/route.ts +++ b/client/src/app/api/upload/route.ts @@ -57,4 +57,4 @@ export async function POST(req: NextRequest) { const response = new NextResponse(parsedText); response.headers.set('FileName', fileName); return response; -} \ No newline at end of file +}