ooooeee
This commit is contained in:
@@ -2,13 +2,23 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
// Turbopack config (Next.js 16 default)
|
||||
turbopack: {},
|
||||
turbopack: {
|
||||
resolveAlias: {
|
||||
// Optional ML backends — not installed, dynamic import fallback to mock
|
||||
"@tensorflow/tfjs": "./src/stubs/empty.ts",
|
||||
"@tensorflow/tfjs-node": "./src/stubs/empty.ts",
|
||||
"onnxruntime-node": "./src/stubs/empty.ts",
|
||||
},
|
||||
},
|
||||
// Webpack config (fallback)
|
||||
webpack: (config) => {
|
||||
config.resolve.alias = {
|
||||
...config.resolve.alias,
|
||||
sharp: false,
|
||||
"detect-libc": false,
|
||||
"@tensorflow/tfjs": false,
|
||||
"@tensorflow/tfjs-node": false,
|
||||
"onnxruntime-node": false,
|
||||
};
|
||||
return config;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user