Using Next.js
1. Add Next.js Code
Option 1) Using Rewrites as proxy
// next.config.js OR next.config.ts
const nextConfig = {
async rewrites() {
return [
{
source: "/ingest/:path*",
destination: "https://spindl.link/:path*",
},
];
},
// ...
}
module.exports = nextConfigOption 2) Use Custom Middleware using App Router
2. Configure Spindl SDK host with the proxy
Last updated