Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue : Closes #447
🧑🎤 Summary
🧑🎤 Comment
repo를 분리하지 않아도 되게 되었어요
cloudflare에서 1개의 repo로 2개의 빌드가 가능했거든요
첫 번째 사이트 || 첫 번째 사이트 cloudflare url
두 번째 사이트 || 두 번째 사이트 cloudflare url
둘 다 같은 repo(현재 repo)에서 생성한 웹 페이지예요
이름은 임시로 Test라고 지었지만 이를 sopt용으로 변경하면 됩니다
이에 따라 env를 분리해주면 좋을 거 같단 생각이 들었어요
따라서
으로 분리 했어요
실행은 아래와 같이 하면 됩니다 (물론 env 파일 총 3개 추가하셔야 해요)
참고자료: Vite의 환경 변수와 모드 | Vite
yarn dev:sopt 하면 현재 500에러 뜨는데 이건 env 분리랑 상관 없이 그냥 코드 상에서 나는 에러예요
axios -> fetch로 변경하면서 수정해야 될 부분이 있어서 그러합니다!
이건 따로 또 이슈 파서 해결해야 할 거 같습니다!
=> 해당 PR에서 해결했습니다!