Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/prod-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
echo "BACKEND_IMAGE_TAG=${{ github.sha }}" > .env
echo "FRONTEND_IMAGE_TAG=${{ github.sha }}" >> .env
echo "REGISTRY_USER=${{ github.repository_owner }}" >> .env
echo "BACK_API_URL=${{ secrets.BACK_API_URL }}" >> .env

docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --remove-orphans --build
docker image prune -af
2 changes: 0 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ services:

frontend:
image: ghcr.io/${REGISTRY_USER}/frontend:${FRONTEND_IMAGE_TAG}
environment:
- VITE_API_URL=${BACK_API_URL}
ports:
- "8081:80"
restart: always
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
import { Suspense } from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
import { Suspense } from 'react';
import Home from './pages/Home';
import NotFound from './pages/NotFound';
import CadastroUsuario from './pages/CadastroUsuario';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/apiUrl.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const API_URL = process.env.VITE_API_URL || 'http://localhost:8080';
export const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:8080';
Loading