hundreds-psychiatrist-38730
02/17/2026, 1:36 PM/ in Ory Network, login is set to /dashboard and "so on"..
i've made a tunnel with the cli with ory tunnel <http://localhost:3000>
after enabling the new UI in Ory Network, the login redirects to localhost:4000 instead of my /dashboard on localhost:3000
the legacy UI works fine.bland-eye-99092
02/17/2026, 1:51 PMhundreds-psychiatrist-38730
02/17/2026, 1:52 PMhundreds-psychiatrist-38730
02/17/2026, 2:37 PMimport {createOryMiddleware} from "@ory/nextjs/middleware"
import oryConfig from "@/ory.config"
export const proxy = createOryMiddleware(oryConfig)
export const config = {
matcher: [
// Match all paths except static files and Next.js internals
"/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)",
],
};
and my ory.config.ts:
import type { OryClientConfiguration } from "@ory/elements-react"
const config: OryClientConfiguration = {
sdk: {
url: process.env.NEXT_PUBLIC_ORY_SDK_URL,
},
project: {
default_locale: "en",
default_redirect_url: "/dashboard",
error_ui_url: "/error",
locale_behavior: "force_default",
name: "Example Coffee",
registration_enabled: true,
verification_enabled: true,
recovery_enabled: true,
registration_ui_url: "/registration",
verification_ui_url: "/verification",
recovery_ui_url: "/recovery",
login_ui_url: "/login",
settings_ui_url: "/settings",
},
}
export default config
I wonder if the export const is wrong?? seems like the "new" way is export function ?
https://nextjs.org/docs/app/api-reference/file-conventions/proxyhundreds-psychiatrist-38730
02/17/2026, 2:37 PMbland-eye-99092
02/17/2026, 9:02 PMhundreds-psychiatrist-38730
02/18/2026, 4:43 PMlocalhost:3000