Skip to content

Commit

Permalink
fix: export
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Jan 28, 2024
1 parent 45bf2ae commit aed01ac
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 79 deletions.
4 changes: 3 additions & 1 deletion app/api/[...slug]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export async function GET(req: Request) {
}
}

module.exports = {
const nextConfig = {
trailingSlash: true,
};

export default nextConfig;
77 changes: 0 additions & 77 deletions app/api/[...slug]/route1.ts

This file was deleted.

14 changes: 13 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ const nextConfig = {
typescript: {
ignoreBuildErrors: true,
},
// async rewrites() {
// return [
// {
// source: "/api/v1/chat/completions", // 用户访问的路径
// destination: "/api/chat", // 实际上被映射到的路径
// },
// {
// source: "/api/paper", // 另一个用户访问的路径
// destination: "/api/chat", // 同样被映射到 common-route
// },
// ];
// },
};

module.exports = nextConfig
module.exports = nextConfig;

0 comments on commit aed01ac

Please sign in to comment.