Skip to content

Commit 3490cd0

Browse files
authored
Save chat conversation history on client-side and enable persona customization (#21)
1 parent 767e733 commit 3490cd0

39 files changed

+1520
-167
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
npm-debug.log*
2424
yarn-debug.log*
2525
yarn-error.log*
26-
.pnpm-debug.log*
2726

2827
# local env files
2928
.env*.local
@@ -34,3 +33,6 @@ yarn-error.log*
3433
# typescript
3534
*.tsbuildinfo
3635
next-env.d.ts
36+
37+
# JetBrains
38+
.idea/

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.next

next.config.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
/** @type {import('next').NextConfig} */
2-
const withLess = require("next-with-less");
3-
const path = require('node:path');
2+
const withLess = require('next-with-less')
3+
const path = require('node:path')
44

55
const nextConfig = {
66
output: 'standalone',
7-
reactStrictMode: true,
7+
reactStrictMode: false,
88
swcMinify: true,
99
transpilePackages: ['antd-mobile'],
1010
webpack(config, options) {
1111
// disable css-module in Next.js
1212
config.module.rules.forEach((rule) => {
13-
const { oneOf } = rule;
13+
const { oneOf } = rule
1414
if (oneOf) {
1515
oneOf.forEach((one) => {
16-
if (!`${one.issuer?.and}`.includes('_app')) return;
17-
one.issuer.and = [path.resolve(__dirname)];
18-
});
16+
if (!`${one.issuer?.and}`.includes('_app')) return
17+
one.issuer.and = [path.resolve(__dirname)]
18+
})
1919
}
2020
})
2121

22-
return config;
22+
return config
2323
}
2424
}
2525

26-
module.exports = withLess(nextConfig);
26+
module.exports = withLess(nextConfig)

0 commit comments

Comments
 (0)