From 8d20f5bd615054cef9e7b25af0c13bfc8ed28aef Mon Sep 17 00:00:00 2001 From: ro-el Date: Wed, 14 Aug 2024 20:24:55 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20localhost=20ssl=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ package.json | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 8692cf6..0dcedff 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +# localhost ssl +cert/ \ No newline at end of file diff --git a/package.json b/package.json index 29c24ad..b56a1d8 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,8 @@ }, "scripts": { "start": "react-scripts start", + "start:mac": "HTTPS=true SSL_CRT_FILE=cert/localhost.pem SSL_KEY_FILE=cert/localhost-key.pem npm run start", + "start:windows": "set HTTPS=true&&set SSL_CRT_FILE=cert/localhost.pem&&set SSL_KEY_FILE=cert/localhost-key.pem&&npm run start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject"