Compare commits

...

4 Commits

Author SHA1 Message Date
399ab2678d Merge pull request 'dev' (#100) from dev into dev-deploy
Reviewed-on: #100
2025-06-05 11:31:30 +09:00
946aa231a3 견적시 이미지 운영, 개발 분리 2025-06-05 11:28:08 +09:00
c6d2904cfe Update environment configuration files to include S3_PROFILE variable for development and production environments; modify image upload path to incorporate S3_PROFILE. 2025-06-05 11:14:22 +09:00
8d3305cd04 캔버스 이벤트 오류 수정
[작업내용] : 캔버스 화면에서 이벤트 발생 후 캔버스 없는 페이지로 이동시 발생하는 오류 수정
2025-06-05 10:49:44 +09:00
2 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@ export async function POST(req) {
const isExistImage1 = await s3.send( const isExistImage1 = await s3.send(
new GetObjectCommand({ new GetObjectCommand({
Bucket, Bucket,
Key: `Drawing/${objectNo}_${planNo}_1.png`, Key: `Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_1.png`,
}), }),
) )
@ -28,7 +28,7 @@ export async function POST(req) {
const isExistImage2 = await s3.send( const isExistImage2 = await s3.send(
new GetObjectCommand({ new GetObjectCommand({
Bucket, Bucket,
Key: `Drawing/${objectNo}_${planNo}_2.png`, Key: `Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_2.png`,
}), }),
) )
@ -37,16 +37,16 @@ export async function POST(req) {
//견적서1 번 이미지 복사 //견적서1 번 이미지 복사
const copyCommand = new CopyObjectCommand({ const copyCommand = new CopyObjectCommand({
Bucket, Bucket,
CopySource: encodeURI(`${Bucket}/Drawing/${objectNo}_${planNo}_1.png`), CopySource: encodeURI(`${Bucket}/Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_1.png`),
Key: `Drawing/${newObjectNo}_${newPlanNo}_1.png`, Key: `Drawing/${process.env.S3_PROFILE}/${newObjectNo}_${newPlanNo}_1.png`,
}) })
const response = await s3.send(copyCommand) const response = await s3.send(copyCommand)
const copyCommand2 = new CopyObjectCommand({ const copyCommand2 = new CopyObjectCommand({
Bucket, Bucket,
CopySource: encodeURI(`${Bucket}/Drawing/${objectNo}_${planNo}_2.png`), CopySource: encodeURI(`${Bucket}/Drawing/${process.env.S3_PROFILE}/${objectNo}_${planNo}_2.png`),
Key: `Drawing/${newObjectNo}_${newPlanNo}_2.png`, Key: `Drawing/${process.env.S3_PROFILE}/${newObjectNo}_${newPlanNo}_2.png`,
}) })
const response2 = await s3.send(copyCommand2) const response2 = await s3.send(copyCommand2)

View File

@ -401,7 +401,7 @@ export function useEvent() {
const removeMouseEvent = (type) => { const removeMouseEvent = (type) => {
mouseEventListeners.current = mouseEventListeners.current.filter((event) => { mouseEventListeners.current = mouseEventListeners.current.filter((event) => {
if (event.eventType === type) { if (event.eventType === type) {
canvas.off(type, event.handler) canvas?.off(type, event.handler)
return false return false
} }
return true return true