Skip to content

Commit

Permalink
Merge pull request #9 from SwarnenduG07/dev
Browse files Browse the repository at this point in the history
add
  • Loading branch information
SwarnenduG07 authored Dec 29, 2024
2 parents 22a5b39 + 4b8f5b2 commit 7552df2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions frontend/app/(auth)/signin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const Signin = () => {
const [isLoading, setIsLoading] = useState(false);
const [error, setError] = useState<string | null>(null);

console.log('Backend URL:', process.env.NEXT_PUBLIC_API_BASE_URL);

const handleLogin = async (email: string, password: string) => {
setIsLoading(true);
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/(protected)/recever/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Separator } from '@/components/ui/separator';
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
import { format } from 'date-fns';
import { PassThrough } from 'stream';

interface ReceivedFile {
id: string;
Expand Down Expand Up @@ -60,8 +61,7 @@ export default function ReceivePage() {
const response = await axios.post(
`${NEXT_PUBLIC_BACKEND_URL}/api/file/retrieve`,
{
shared_id: sharedId,
password: '',
body: JSON.stringify({ }),
},
{
headers: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/config.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const NEXT_PUBLIC_BACKEND_URL = process.env.NEXT_PUBLIC_BACKEND_URL || "http://localhost:8000"
export const NEXT_PUBLIC_BACKEND_URL = process.env.NEXT_PUBLIC_API_BASE_URL || "http://apiprigen.swarnendu.me"

0 comments on commit 7552df2

Please sign in to comment.