Spaces:
Sleeping
Sleeping
Jon Taylor
commited on
Commit
·
5973f95
1
Parent(s):
687da3c
test deps
Browse files- frontend/next.config.js +9 -0
frontend/next.config.js
CHANGED
|
@@ -2,6 +2,15 @@
|
|
| 2 |
const nextConfig = {
|
| 3 |
reactStrictMode: false,
|
| 4 |
output: "export",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
};
|
| 6 |
|
| 7 |
module.exports = nextConfig;
|
|
|
|
| 2 |
const nextConfig = {
|
| 3 |
reactStrictMode: false,
|
| 4 |
output: "export",
|
| 5 |
+
webpack: (config) => {
|
| 6 |
+
// See https://webpack.js.org/configuration/resolve/#resolvealias
|
| 7 |
+
config.resolve.alias = {
|
| 8 |
+
...config.resolve.alias,
|
| 9 |
+
sharp$: false,
|
| 10 |
+
"onnxruntime-node$": false,
|
| 11 |
+
};
|
| 12 |
+
return config;
|
| 13 |
+
},
|
| 14 |
};
|
| 15 |
|
| 16 |
module.exports = nextConfig;
|