-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: cleanup dead code and some bug fixes #167
Conversation
Thank you for following the naming conventions for pull request titles! 🙏 |
import { type Metadata } from "next"; | ||
|
||
export const metadata: Metadata = { | ||
title: "OpenCap - Sign Up", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need a signup page now
@@ -6,7 +6,7 @@ type ProviderProps = { | |||
children: React.ReactNode; | |||
}; | |||
|
|||
const ProgressBarProvider = ({ children }: ProviderProps) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactored inside providers folder
async redirects() { | ||
return [ | ||
{ | ||
source: "/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove double redirect. now the redirection is handle inside the home page
/usr/bin/mc config host add myminio http://minio:9002 opencap password; | ||
/usr/bin/mc mb myminio/opencap; | ||
/usr/bin/mc mb myminio/opencap-public; | ||
/usr/bin/mc anonymous set public myminio/opencap-public; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
creates private bucket and public bucket
|
||
const s3BaseURL = `https://${env.PUBLIC_UPLOAD_BUCKET}.s3.amazonaws.com`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes hard coding of aws url and accessing env variables in client side error.
import { Button } from "@/components/ui/button"; | ||
import { Input } from "@/components/ui/input"; | ||
import { zodResolver } from "@hookform/resolvers/zod"; | ||
import { RiArrowRightLine } from "@remixicon/react"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dead code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💜
No description provided.