2024-12-04 14:14:25 +08:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: "/api/:path*",
|
2024-12-19 18:04:03 +08:00
|
|
|
destination: "https://api.tiefen.space/api/:path*",
|
2024-12-04 14:14:25 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
source: "/cors/:path*",
|
2024-12-19 18:04:03 +08:00
|
|
|
destination: "https://file.tiefen.space/:path*",
|
2024-12-04 14:14:25 +08:00
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
|
|
|
transpilePackages: ["crypto-js"],
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = nextConfig;
|