Open
Conversation
PR Code Suggestions ✨No code suggestions found for the PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Type
Enhancement
Description
로컬 개발 환경에 HTTPS 지원 추가
Vite, Webpack, Next.js 앱에 SSL 설정 적용
HTTPS=true환경 변수로 SSL 활성화각 앱에
dev:ssl스크립트 추가Diagram Walkthrough
flowchart LR A["HTTPS=true 환경 변수"] --> B{애플리케이션 유형}; B --> C["Vite 앱"]; C -- "basicSsl 플러그인" --> D[HTTPS 개발 서버]; B --> E["Webpack 앱"]; E -- "devServer.server 설정" --> D; B --> F["Next.js 앱"]; F -- "--experimental-https" --> D;File Walkthrough
vite.config.ts
Vite 개발 서버에 HTTPS 지원 추가apps/tanstack/vite.config.ts
@vitejs/plugin-basic-ssl플러그인을 임포트했습니다.HTTPS=true환경 변수를 감지하는isHttps상수를 추가했습니다.isHttps값에 따라basicSsl()플러그인을 조건부로 활성화하도록 설정했습니다.webpack.config.js
Webpack 개발 서버에 HTTPS 지원 추가apps/webpack/webpack.config.js
devServer.server설정을process.env.HTTPS === 'true'여부에 따라 동적으로 변경했습니다.HTTPS=true일 경우 개발 서버가https프로토콜을 사용하도록 구성했습니다.package.json
Vite 앱 SSL 개발 스크립트 및 의존성 추가apps/tanstack/package.json
dev:ssl스크립트를 추가하여HTTPS=true환경에서 Vite 개발 서버를 실행할 수 있도록 했습니다.@vitejs/plugin-basic-ssl개발 의존성을 추가했습니다.package.json
Webpack 앱 SSL 개발 스크립트 추가apps/webpack/package.json
start:dev:ssl스크립트를 추가하여HTTPS=true환경에서 Webpack 개발 서버를 실행할 수 있도록했습니다.
package.json
Next.js 앱 SSL 개발 스크립트 추가apps/web/package.json
dev:ssl스크립트를 추가하여next dev --experimental-https명령으로 Next.js 개발 서버를HTTPS로 실행할 수 있도록 했습니다.