cloudflare / cloudflare/vinext
Add support for rewrites
- Dominant language
- TypeScript
- Stars
- 8.8k
- Forks
- 406
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 120
Description
It seems like vinext are not working with rewrites properly:
https://nextjs.org/docs/app/api-reference/config/next-config-js/rewrites
Our config:
```
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
devIndicators: false,
output: "standalone",
reactCompiler: true,
reactStrictMode: true,
turbopack: {
rules: {
"*.css": {
loaders: ["@tailwindcss/webpack"],
},
},
},
typedRoutes: true,
typescript: {
ignoreBuildErrors: true,
},
async rewrites() {
// These pages are static HTML pages that handle auth flows.
// We can hide the .html suffix when being accessed.
return [
{
source: "/auth/no-access",
destination: "/auth/no-access.html",
},
{
source: "/auth/automatic-sign-in",
destination: "/auth/automatic-sign-in.html",
},
{
source: "/auth/signed-out",
destination: "/auth/signed-out.html",
},
];
},
};
export default nextConfig;
```
Contributor guide
Assessment
This issue has not been assessed yet.