Skip to content

Commit

Permalink
setting :: baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed May 7, 2024
1 parent 0c7170d commit 1b359b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/service-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
yarn_docker_build: false
yarn_workspace: .
buildargs: |
VITE_TEST_DATA=${{ secrets.VITE_TEST_DATA }}
VITE_SERVER_BASE_URL=${{ secrets.VITE_SERVER_BASE_URL }}
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ WORKDIR /app
RUN apk add --no-cache libc6-compat

# .env 파일
ENV VITE_SERVER_BASE_URL="https://api.example.com"

ARG VITE_TEST_DATA
ENV VITE_TEST_DATA=${VITE_TEST_DATA}
ARG VITE_SERVER_BASE_URL
ENV VITE_SERVER_BASE_URL=${VITE_SERVER_BASE_URL}

COPY . ./

Expand Down
3 changes: 1 addition & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import { StyledProvider } from './style/StyledProvider';

export const App = () => {
console.log(import.meta.env.VITE_SERVER_BASE_URL);
console.log(import.meta.env.VITE_TEST_DATA);

return (
<StyledProvider>
6
last
<RouterProvider router={Router} />
</StyledProvider>
);
Expand Down

0 comments on commit 1b359b3

Please sign in to comment.