tiefen_space_web/next.config.js

23 lines
504 B
JavaScript
Raw Normal View History

2024-01-03 01:07:16 +08:00
/** @type {import('next').NextConfig} */
const nextConfig = {
async rewrites() {
return [
{
source: "/api/:path*",
destination: "https://api.tiefen.fun/api/:path*",
},
{
source: "/cors/:path*",
destination: "https://file.tiefen.fun/:path*",
},
2024-06-14 23:34:23 +08:00
{
source: "/cdn/:path*",
destination: "https://filecdnhw01.tiefen.fun/public/:path*",
},
2024-01-03 01:07:16 +08:00
];
},
transpilePackages: ["crypto-js"],
};
module.exports = nextConfig;