Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit aed4e76

Browse files
committed
experiment: embedding generation on client side
1 parent ac3b23f commit aed4e76

File tree

5 files changed

+279
-184
lines changed

5 files changed

+279
-184
lines changed

docs/next.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
/** @type {import('next').NextConfig} */
22
// import MillionLint from "@million/lint";
3+
import path from 'path';
4+
import { fileURLToPath } from 'url';
5+
6+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
37

48
const nextConfig = {
59
webpack: (config) => {
610
config.module.rules.push({
711
test: /\.json$/,
812
type: 'json',
913
});
14+
1015
config.resolve.alias = {
1116
...config.resolve.alias,
1217
"sharp$": false,
1318
"onnxruntime-node$": false,
1419
}
20+
21+
config.resolve.alias['@huggingface/transformers'] = path.resolve(__dirname, 'node_modules/@huggingface/transformers');
22+
1523
return config
1624
},
1725
experimental: {

docs/public/context/docs.db

4 KB
Binary file not shown.

0 commit comments

Comments
 (0)