[GH-ISSUE #199] Add support for rewrites #47

Open
opened 2026-05-06 12:36:48 +02:00 by BreizhHardware · 1 comment

Originally created by @wojtekmaj on GitHub (Feb 28, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/199

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;

Originally created by @wojtekmaj on GitHub (Feb 28, 2026). Original GitHub issue: https://github.com/cloudflare/vinext/issues/199 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; ```
Author
Owner

@Divkix commented on GitHub (Apr 30, 2026):

vinext does support rewrites

I don't think the issues is valid now.

A minimal reproduction repo would help confirm whether this is a remaining gap.

<!-- gh-comment-id:4349477006 --> @Divkix commented on GitHub (Apr 30, 2026): vinext does support `rewrites` I don't think the issues is valid now. A minimal reproduction repo would help confirm whether this is a remaining gap.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#47
No description provided.