Skip to content

Commit

Permalink
try :: git
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed May 7, 2024
1 parent 9ae63e6 commit b3ed502
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ WORKDIR /app

RUN apk add --no-cache libc6-compat

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

ARG VITE_TEST_DATA
ENV VITE_TEST_DATA=${VITE_TEST_DATA}

COPY . ./

RUN yarn install --immutable
Expand Down
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ 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>
3
4
<RouterProvider router={Router} />
</StyledProvider>
);
Expand Down

0 comments on commit b3ed502

Please sign in to comment.