Skip to content

Commit

Permalink
feat: setting /new as un-authenticated route
Browse files Browse the repository at this point in the history
  • Loading branch information
dahal committed May 30, 2024
1 parent 8505aab commit 886aca4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ We have a community of developers, designers, and entrepreneurs who are passiona
---

<h3 id="start">Getting started</h3>
When contributing to **Captable, Inc.**, whether on GitHub or in other community spaces:
When contributing to <strong>Captable, Inc.</strong>, whether on GitHub or in other community spaces:

- Be respectful, civil, and open-minded.
- Before opening a new pull request, try searching through the [issue tracker](https://github.com/captableinc/captable/issues) for known issues or fixes.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { Button } from "@/components/ui/button";
import { env } from "@/env";
import { getServerAuthSession } from "@/server/auth";
import {
RiCheckboxCircleFill as CheckIcon,
RiGoogleFill as GoogleIcon,
} from "@remixicon/react";
import { RiCheckboxCircleFill as CheckIcon } from "@remixicon/react";

import { redirect } from "next/navigation";
import { notFound } from "next/navigation";
import LoginWithGoogle from "./components/LoginWithGoogle";

export default async function CapPage() {
if (env.NEXT_PUBLIC_BASE_URL !== "https://cloud.captable.inc") {
// if (env.NEXT_PUBLIC_BASE_URL !== "http://localhost:3000") {
if (!env.NEXT_PUBLIC_BASE_URL.includes("captable.inc")) {
return notFound();
}

Expand Down

0 comments on commit 886aca4

Please sign in to comment.