We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45bf188 commit 4e5ab65Copy full SHA for 4e5ab65
packages/runtime/plugin-runtime/src/core/context/response/index.tsx
@@ -3,4 +3,8 @@ export const getResponseProxy = () => {
3
};
4
export const setHeaders = (headers: Record<string, string>) => {};
5
export const setStatus = (status: number) => {};
6
-export const redirect = (url: string, init?: number | ResponseInit) => {};
+export const redirect = (url: string, init?: number | ResponseInit) => {
7
+ console.warn(
8
+ `You should not use this API in the browser, please use the router's redirect or useNavigate method.`,
9
+ );
10
+};
0 commit comments