mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-12-14 22:27:37 +01:00
Added the possibility to override partial configs during deployments
Added default output to jest (for terminal output...) Upgraded npm packages. Left jest on 27 because of breaking changes in 28
This commit is contained in:
17
public/configOverride.js
Normal file
17
public/configOverride.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* This is the config override file.
|
||||
* This file is meant to be replaced during deployment with override values compared to the regular config.js
|
||||
* For development purposes this file can be completely empty
|
||||
*/
|
||||
|
||||
const configOverride = {};
|
||||
|
||||
// ignore this :)
|
||||
try {
|
||||
window.configOverride = configOverride;
|
||||
if (module) {
|
||||
module.exports = configOverride;
|
||||
}
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
Reference in New Issue
Block a user