Next.js 14 rewrites not working
Unanswered
Alligator mississippiensis posted this in #help-forum
Alligator mississippiensisOP
Hi guys, I am unable to get rewrite to work what so ever in Next.js, this is my
When the route is accessed, 404 is always being returned.
next.config.js code:/** @type {import("next").NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
compress: true,
productionBrowserSourceMaps: false,
optimization: {
minimize: true,
},
async rewrites() {
return [
{
source: '/__clerk/:path*',
destination: 'https://exotic-caribou-69.clerk.accounts.dev/:path*',
},
];
},
};
export default nextConfig;When the route is accessed, 404 is always being returned.
3 Replies
Alligator mississippiensisOP
I think that you are posting to the wrong thread.
Tomistoma
ya I am lol sorry
Alligator mississippiensisOP
np