Skip to content

Commit

Permalink
refactor(CE): ui/ server.js , Dockerfile.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
xyfer17 committed Oct 4, 2024
1 parent 7e087f7 commit 0d9862d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM node:18-alpine
WORKDIR /app

# ENV Variable
ENV VITE_API_HOST='https://api.multiwoven.com'
ENV VITE_API_HOST='http://localhost:3000'

# Copy package.json and package-lock.json (or yarn.lock if using Yarn)
COPY package.json package-lock.json* ./
Expand All @@ -17,7 +17,7 @@ RUN npm ci
COPY . .

# ENV Variable
ENV VITE_API_HOST='https://api.multiwoven.com'
ENV VITE_API_HOST='http://localhost:3000'

EXPOSE 8000

Expand Down
2 changes: 1 addition & 1 deletion ui/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ app.use(express.static(path.join(__dirname, 'dist')));

app.get('/env', (req, res) => {
res.json({
VITE_API_HOST: process.env.VITE_API_HOST,
VITE_API_HOST: process.env.VITE_API_HOST || 'http://localhost:3000',
});
});

Expand Down

0 comments on commit 0d9862d

Please sign in to comment.