mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Added option to use hosted heroku api when developing
This commit is contained in:
		
							parent
							
								
									cb879b29fe
								
							
						
					
					
						commit
						87a76b6227
					
				| @ -27,6 +27,7 @@ | ||||
|     "build:assets": "NODE_ENV=production webpack -p", | ||||
|     "build:html": "cp public/*.* dist/.", | ||||
|     "start": "NODE_ENV=development webpack-dev-server --config webpack.config.js --progress --colors --port 3000", | ||||
|     "start:heroku": "UNLEASH_API=http://unleash.herokuapp.com npm run start", | ||||
|     "lint": "eslint . --ext=js,jsx", | ||||
|     "test": "npm run build", | ||||
|     "test:ci": "npm run test", | ||||
|  | ||||
| @ -71,7 +71,8 @@ module.exports = { | ||||
|     devServer: { | ||||
|         proxy: { | ||||
|             '/api': { | ||||
|                 target: 'http://localhost:4242', | ||||
|                 target: process.env.UNLEASH_API || 'http://localhost:4242', | ||||
|                 changeOrigin: true, | ||||
|                 secure: false, | ||||
|             }, | ||||
|         }, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user