Add initial webui

This commit is contained in:
2025-11-01 17:18:32 -07:00
committed by Mark
parent 19f523d0ed
commit 07aeda5e07
28 changed files with 2994 additions and 0 deletions

27
webui/next.config.js Normal file
View 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;