tiefen_space_h5/next.config.js

23 lines
547 B
JavaScript
Raw Normal View History

2024-06-24 22:12:13 +08:00
/** @type {import('next').NextConfig} */
2024-07-02 15:09:48 +08:00
const nextConfig = {
2024-09-09 13:12:59 +08:00
async rewrites() {
return [
{
source: "/api/:path*",
2024-12-19 15:01:58 +08:00
destination: "https://h5api.tiefen.space/api/:path*",
// destination: "https://testapi.tiefen.space/api/:path*",
2024-09-09 13:12:59 +08:00
},
2024-12-25 21:18:17 +08:00
{
source: "/imgprod/:path*",
destination: "https://levianderwinv01.tiefen.space/imgprod/:path*",
},
2024-09-09 13:12:59 +08:00
];
},
transpilePackages: ["crypto-js"],
experimental: {
missingSuspenseWithCSRBailout: false,
},
};
module.exports = nextConfig;