mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-11-30 22:45:46 +01:00
added neccessary env
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# frontend/.env.development
|
# frontend/.env.development
|
||||||
#BROWSER=none
|
BROWSER=none
|
||||||
#FAST_REFRESH=true
|
FAST_REFRESH=true
|
||||||
#DANGEROUSLY_DISABLE_HOST_CHECK=true
|
DANGEROUSLY_DISABLE_HOST_CHECK=true
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
// frontend/config-overrides.js
|
|
||||||
const path = require('path');
|
|
||||||
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
|
|
||||||
|
|
||||||
module.exports = function override(config) {
|
|
||||||
// Erlaube Imports außerhalb von src/
|
|
||||||
config.resolve.plugins = config.resolve.plugins.filter(
|
|
||||||
plugin => !(plugin instanceof ModuleScopePlugin)
|
|
||||||
);
|
|
||||||
|
|
||||||
// Alias konfigurieren
|
|
||||||
config.resolve.alias = {
|
|
||||||
...config.resolve.alias,
|
|
||||||
'@premium-frontend': path.resolve(__dirname, '../premium/frontendPRO/src')
|
|
||||||
};
|
|
||||||
|
|
||||||
return config;
|
|
||||||
};
|
|
||||||
@@ -25,13 +25,10 @@
|
|||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"start:pro": "set REACT_APP_ENABLE_PRO=true&& react-scripts start",
|
"start:pro": "set REACT_APP_ENABLE_PRO=true&& react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"build:community": "react-scripts build",
|
"build:commercial": "set REACT_APP_ENABLE_PRO=true&& react-scripts build",
|
||||||
"build:commercial": "set REACT_APP_ENABLE_PRO=true && react-scripts build",
|
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit"
|
||||||
"dev": "react-scripts start",
|
|
||||||
"dev:pro": "set REACT_APP_ENABLE_PRO=true && react-scripts start"
|
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": [
|
"extends": [
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import Features from './components/Layout/FooterLinks/Features/Features';
|
|||||||
import { CommunityContact, CommunityLegalPage } from './components/Layout/FooterLinks/CommunityLinks/communityLinks';
|
import { CommunityContact, CommunityLegalPage } from './components/Layout/FooterLinks/CommunityLinks/communityLinks';
|
||||||
|
|
||||||
// Feature flag from environment
|
// Feature flag from environment
|
||||||
const ENABLE_PRO = process.env.REACT_APP_ENABLE_PRO === 'true';
|
const ENABLE_PRO = process.env.ENABLE_PRO === 'true';
|
||||||
|
|
||||||
// Conditional Premium Components
|
// Conditional Premium Components
|
||||||
let PremiumContact: React.FC = CommunityContact;
|
let PremiumContact: React.FC = CommunityContact;
|
||||||
|
|||||||
Reference in New Issue
Block a user