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"