cloudflare / cloudflare/vinext

Add support for rewrites

Open
#199 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.