diff --git a/README.md b/README.md index fd00783..1b1f2c3 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ And that's it! Your `SkateHub Frontend` should now be up and running locally on ### 2024 +- 2024-04-28 - Redirect to the root route when attempting to access /auth [#19](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/19) _(v0.1.15)_ - 2024-04-28 - Create the `forgot-password` page of the SkateHub project [#18](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/18) _(v0.1.14)_ - 2024-04-11 - Update the `signin` page of the SkateHub project [#17](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/17) _(v0.1.13)_ - 2024-04-08 - Create the `confirmation` page of the SkateHub project [#15](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/15) _(v0.1.12)_ diff --git a/package.json b/package.json index c25d077..84a0444 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "0.1.14", + "version": "0.1.15", "private": true, "scripts": { "dev": "next dev", diff --git a/src/pages/auth/index.tsx b/src/pages/auth/index.tsx new file mode 100644 index 0000000..df0934f --- /dev/null +++ b/src/pages/auth/index.tsx @@ -0,0 +1,9 @@ +import { useRouter } from "next/router"; + +export default function Auth() { + const router = useRouter(); + + if (typeof window !== "undefined") { + router.push("/"); + } +}