diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 2f67b11..8c25ecb 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -10,7 +10,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Login to Docker Hub uses: docker/login-action@v1 @@ -19,7 +19,7 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: ./file-share-rust-backend push: true diff --git a/file-share-rust-backend/src/main.rs b/file-share-rust-backend/src/main.rs index 4671db2..4d3feb8 100644 --- a/file-share-rust-backend/src/main.rs +++ b/file-share-rust-backend/src/main.rs @@ -52,7 +52,7 @@ async fn main() { }; let cors = CorsLayer::new() - .allow_origin("http://localhost:3000".parse::().unwrap()) + .allow_origin("https://prigen.swarnendu.me/".parse::().unwrap()) .allow_headers([AUTHORIZATION, ACCEPT, CONTENT_TYPE]) .allow_credentials(true) .allow_methods([Method::GET, Method::POST, Method::PUT]); diff --git a/frontend/app/(auth)/signin/page.tsx b/frontend/app/(auth)/signin/page.tsx index e583fd1..1fd3db3 100644 --- a/frontend/app/(auth)/signin/page.tsx +++ b/frontend/app/(auth)/signin/page.tsx @@ -13,7 +13,6 @@ const Signin = () => { const [isLoading, setIsLoading] = useState(false); const [error, setError] = useState(null); - console.log('Backend URL:', process.env.NEXT_PUBLIC_API_BASE_URL); const handleLogin = async (email: string, password: string) => { setIsLoading(true); diff --git a/frontend/app/(protected)/recever/page.tsx b/frontend/app/(protected)/recever/page.tsx index 18b07df..10d2e2e 100644 --- a/frontend/app/(protected)/recever/page.tsx +++ b/frontend/app/(protected)/recever/page.tsx @@ -8,7 +8,6 @@ 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;