Next.js
redirect

把首頁轉向

next.config.mjs
const config = {
  redirects() {
    return [
      {
        source: "/",
        destination: "/document",
        // permanent: true,
      },
    ];
  },
};
 
export default config;