Skip to content

Commit

Permalink
feature: Add env api host
Browse files Browse the repository at this point in the history
  • Loading branch information
junseublim committed Jul 17, 2024
1 parent d7d28d0 commit 5d9a8c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ jobs:
- name: Delete existing container
run: docker rm -f polabo-fe || true
- name: Run container
run: docker run -d -p 80:3000 --name polabo-fe sonny2024/polabo-fe:latest
env:
API_HOST: ${{ secrets.API_HOST }}
run: docker run -d -p 80:3000 --name polabo-fe -e API_HOST=${{ secrets.API_HOST }} sonny2024/polabo-fe:latest
3 changes: 2 additions & 1 deletion src/components/Polaroid/PolaroidMaker.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client'

import { MAX_LENGTH } from '@/lib'
import rotateImageIfNeeded from '@/lib/utils/image'
import AddPhotoIcon from 'public/icons/add_photo_alternate.svg'
import { ChangeEvent, useEffect, useState } from 'react'
Expand All @@ -14,6 +13,8 @@ interface PolaroidMakerProps {
setText: (text: string) => void
}

const MAX_LENGTH = 20

const PolaroidMaker = ({
setButtonDisabled,
selectedFile,
Expand Down

0 comments on commit 5d9a8c8

Please sign in to comment.