File tree Expand file tree Collapse file tree 5 files changed +8
-3
lines changed
backend/src/main/resources
src/components/share-link Expand file tree Collapse file tree 5 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ $RECYCLE.BIN/
6565.env
6666.env.local
6767.env.local.copy
68+ .env.example
6869
6970# Created by https://www.toptal.com/developers/gitignore/api/intellij,visualstudiocode
7071# Edit at https://www.toptal.com/developers/gitignore?templates=intellij,visualstudiocode
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ spring.datasource.username=${DATABASE_USERNAME}
44spring.datasource.password =${MYSQL_ROOT_PASSWORD}
55spring.datasource.driver-class-name =com.mysql.cj.jdbc.Driver
66spring.jpa.show-sql =true
7- spring.jpa.hibernate.ddl-auto =create
7+ spring.jpa.hibernate.ddl-auto =update
88spring.docker.compose.lifecycle-management =start-and-stop
99logging.level.org.springframework.security =DEBUG
1010spring.data.redis.host =${REDIS_HOST}
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ services:
6464 args :
6565 VITE_API_URL : ${VITE_API_URL}
6666 VITE_KAKAO_API_KEY : ${VITE_KAKAO_API_KEY}
67+ VITE_APP_BASE_URL : ${VITE_APP_BASE_URL}
6768 image : ${DOCKER_REGISTRY}/timepaper-client-image:latest
6869 env_file :
6970 - .env
Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ FROM node:23-alpine AS build
33
44ARG VITE_API_URL
55ARG VITE_KAKAO_API_KEY
6+ ARG VITE_APP_BASE_URL
67ENV VITE_API_URL=$VITE_API_URL
78ENV VITE_KAKAO_API_KEY=$VITE_KAKAO_API_KEY
9+ ENV VITE_APP_BASE_URL=$VITE_APP_BASE_URL
810
911WORKDIR /app
1012
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import BottomButton from '../BottomButton/BottomButton';
33
44export default function ShareLink ( { timepaperId } ) {
55 const KAKAO_API_KEY = import . meta. env . VITE_KAKAO_API_KEY ;
6- const realUrl = `https://43.201.24.13.sslip.io/timepaper/${ timepaperId } ` ;
6+ const BASE_URL = import . meta. env . VITE_APP_BASE_URL ;
7+ const realUrl = `${ BASE_URL } /timepaper/${ timepaperId } ` ;
78
89 useEffect ( ( ) => {
910 if ( ! window . Kakao ) {
@@ -27,7 +28,7 @@ export default function ShareLink({ timepaperId }) {
2728 content : {
2829 title : '친구에게서 타임페이퍼가 왔어요💕' ,
2930 description : '' ,
30- imageUrl : `https://43.201.24.13.sslip.io /assets/timepaperLogo-0WzOUFBd.png` ,
31+ imageUrl : `${ BASE_URL } /assets/timepaperLogo-0WzOUFBd.png` ,
3132 link : {
3233 mobileWebUrl : realUrl ,
3334 webUrl : realUrl ,
You can’t perform that action at this time.
0 commit comments