Skip to content

Commit

Permalink
Setup deployment for frontend
Browse files Browse the repository at this point in the history
Signed-off-by: joeyyy09 <menteharshith@gmail.com>
  • Loading branch information
joeyyy09 committed Oct 3, 2024
1 parent 4286d10 commit 1c1b13f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion backend/controllers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const client = require("../configs/redis");
const NodeRSA = require("node-rsa");
const nodemailer = require("nodemailer");
const key = new NodeRSA({ b: 1024 });
const URL = "http://localhost:3300";
const URL = "https://passman-backend-seven.vercel.app";

// generating accessToken
const accessTokenGenerator = (user) => {
Expand Down
2 changes: 1 addition & 1 deletion backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app.use(express.json());
app.use(
cors({
credentials: true,
origin: "http://localhost:3000",
origin: "https://passmannn.vercel.app",
})
);

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function CardComponent(props) {
_id: id,
} = props.passwordDetailes;
const { privateKey } = props;
const URL = "http://localhost:3300";
const URL = "https://passman-backend-seven.vercel.app";
const accessToken = sessionStorage.getItem("access");
const [Password, setPassword] = useState("*********");
const Navigate = useNavigate();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/addPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faEye, faEyeSlash } from "@fortawesome/free-solid-svg-icons";

const AddPassword = () => {
const URL = "http://localhost:3300";
const URL = "https://passman-backend-seven.vercel.app";
const [passDetails, setPassDetails] = useState({
websiteURL: "",
Title: "",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/allPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FaLock } from "react-icons/fa";
import Navbar from "../components/navbar";
import CardComponent from "../components/cards";

const URL = "http://localhost:3300";
const URL = "https://passman-backend-seven.vercel.app";

const AllPasswords = ({ privateKey }) => {
const [passwords, setPasswords] = useState([]);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/editPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import axios from "axios";
import jwt_decode from "jwt-decode";

const EditPassword = (props) => {
const URL = "http://localhost:3300";
const URL = "https://passman-backend-seven.vercel.app";
const [passDetailes, setPassDetailes] = useState({});
const navigate = useNavigate();
const accessToken = sessionStorage.getItem("access");
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/privateKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import jwt_decode from "jwt-decode";
import Navbar from "../components/navbar";
import { FaLock } from "react-icons/fa";

const URL = "http://localhost:3300";
const URL = "https://passman-backend-seven.vercel.app";

export default function PrivateKey(props) {
const { setPrivateKey, privateKey } = props;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/signin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Mail, Lock } from "lucide-react";
import { toast } from "react-toastify";

export default function Signin({ setAccessToken }) {
const URL = "http://localhost:3300";
const URL = "https://passman-backend-seven.vercel.app";
const [user, setUser] = useState({ email: "", password: "" });
const navigate = useNavigate();
axios.defaults.withCredentials = true;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Modal from "../components/Popup";
import { toast } from "react-toastify";

export default function SignUp({ setAccessToken, setPrivateKey, privateKey }) {
const URL = "http://localhost:3300";
const URL = "https://passman-backend-seven.vercel.app";
const [user, setUser] = useState({ email: "", name: "", password: "" });
const navigate = useNavigate();
axios.defaults.withCredentials = true;
Expand Down

0 comments on commit 1c1b13f

Please sign in to comment.