dockerfiles
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV REACT_APP_API_URL=http://localhost:5015/
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "start"]
|
||||
@@ -1,6 +1,6 @@
|
||||
import axios, { AxiosResponse } from 'axios';
|
||||
|
||||
const API_URL = 'http://localhost:32769/';
|
||||
const API_URL = process.env.REACT_APP_API_URL;
|
||||
|
||||
class GeradorService {
|
||||
static async GenerateNIF(type: string | null): Promise<any[]> {
|
||||
|
||||
@@ -67,7 +67,7 @@ export default function GeradorNIF() {
|
||||
<Button size="small" onClick={fetchNif}>Gerar</Button>
|
||||
</CardActions>
|
||||
</Card>
|
||||
);
|
||||
|
||||
</Stack>
|
||||
</Container>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user