Next.js 13.4.5 deployment: Redirects appending “.txt” to page names in URL

I’m currently facing an issue with redirects in my Next.js 13.4.5 deployment to Firebase. I have configured my Next.js application to output as a static export using the following configuration in my next.config.js file:

/** @type {import('next').NextConfig} */
const nextConfig = {
    output: 'export',
}

module.exports = nextConfig

However, after deploying my application to Firebase, I noticed that the redirects are appending “.txt” to the page names in the URL. For example, instead of redirecting to http://localhost:3000/dashboard, the URL becomes http://localhost:3000/dashboard.txt.

I expected the redirect to function properly as a client-side redirect using router.push() in Next.js, without modifying the URL with the “.txt” extension.

I have checked my redirect configurations, and they seem to be correct. Is there something I’m missing in my deployment setup or configuration that could be causing this issue?