We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey @saltyshiomix,
I want to make a middleware that redirects user to /home if he goes to / and I have made this middleware file:
import { NextResponse } from "next/server"; import type { NextRequest } from "next/server"; export function middleware(request: NextRequest) { return NextResponse.redirect(new URL("/home", request.url)); }
My problem is that it does not redirect user to /home and does not work at all.
this is my project structure:
and I want to know if I can run my nextron app with --turbo flag
The text was updated successfully, but these errors were encountered:
attention please as I do not have time and should make this project as quickly as possible @cellis @jogoodma @ColeTownsend @beinbm thanks.
Sorry, something went wrong.
Middleware worked after I have deleted the "output": "export" line in next.config.js file
The build failed it should be "output": "export" in the build but it works fine in dev mode
No branches or pull requests
Hey @saltyshiomix,
I want to make a middleware that redirects user to /home if he goes to / and I have made this middleware file:
My problem is that it does not redirect user to /home and does not work at all.
this is my project structure:
and I want to know if I can run my nextron app with --turbo flag
The text was updated successfully, but these errors were encountered: