mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
Docs: move redirects to global config, remove client-side redirect page
Co-Authored-By: Craft Agent <agents-noreply@craft.do>
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
"use client";
|
|
||||||
|
|
||||||
import { useEffect } from "react";
|
|
||||||
import { useRouter } from "next/navigation";
|
|
||||||
|
|
||||||
export default function Page() {
|
|
||||||
const router = useRouter();
|
|
||||||
useEffect(() => {
|
|
||||||
router.replace("/usage/setup/");
|
|
||||||
}, [router]);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
@@ -16,6 +16,10 @@ const config = {
|
|||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
serverExternalPackages: ["typescript", "twoslash"],
|
serverExternalPackages: ["typescript", "twoslash"],
|
||||||
|
|
||||||
|
async redirects() {
|
||||||
|
return redirectsConfig;
|
||||||
|
},
|
||||||
|
|
||||||
webpack(config) {
|
webpack(config) {
|
||||||
config.resolve.alias["@/bknd"] = path.resolve(__dirname, "../app/src");
|
config.resolve.alias["@/bknd"] = path.resolve(__dirname, "../app/src");
|
||||||
config.resolve.alias["@"] = path.resolve(__dirname);
|
config.resolve.alias["@"] = path.resolve(__dirname);
|
||||||
@@ -28,7 +32,6 @@ const config = {
|
|||||||
|
|
||||||
if (process.env.NODE_ENV === "development") {
|
if (process.env.NODE_ENV === "development") {
|
||||||
config.output = "standalone";
|
config.output = "standalone";
|
||||||
config.redirects = async () => redirectsConfig;
|
|
||||||
config.rewrites = async () => rewritesConfig;
|
config.rewrites = async () => rewritesConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user