Add initial webui
This commit is contained in:
27
webui/next.config.js
Normal file
27
webui/next.config.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
webpack: (config) => {
|
||||
// Handle WASM files
|
||||
config.experiments = {
|
||||
...config.experiments,
|
||||
asyncWebAssembly: true,
|
||||
};
|
||||
|
||||
// Add rule for .wasm files
|
||||
config.module.rules.push({
|
||||
test: /\.wasm$/,
|
||||
type: 'asset/resource',
|
||||
});
|
||||
|
||||
// Allow importing from parent directories (for rust workspace)
|
||||
config.resolve.fallback = {
|
||||
...config.resolve.fallback,
|
||||
fs: false,
|
||||
path: false,
|
||||
};
|
||||
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
Reference in New Issue
Block a user