Skip to content

Instantly share code, notes, and snippets.

View kuamanet's full-sized avatar

KDan kuamanet

View GitHub Profile
@ravi123shanker
ravi123shanker / webpack_https_proxy.txt
Created January 7, 2021 12:33
How to Configure a Webpack Proxy for HTTPS domain
Step 1:
Add below line in your start script command in package.json
"start": "webpack-dev-server --https --env.apiBaseUrl='https://yourdomain.com/' --config webpack.config.js"
Step 2:
After above changes, change your webpack.config.js as below:
module.exports = function({ apiBaseUrl = "https://yourdomain.com/" }) {
return {
...

Reset

You can reset the commit for a local branches using git reset

To change the commit of a local branch:

git fetch
git reset origin/master --hard