diff --git a/frontend/.env.development b/frontend/.env.development index 73c625a..2ca45fd 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1,4 +1,4 @@ # frontend/.env.development -#BROWSER=none -#FAST_REFRESH=true -#DANGEROUSLY_DISABLE_HOST_CHECK=true \ No newline at end of file +BROWSER=none +FAST_REFRESH=true +DANGEROUSLY_DISABLE_HOST_CHECK=true \ No newline at end of file diff --git a/frontend/config-override.js b/frontend/config-override.js deleted file mode 100644 index 4b21d2e..0000000 --- a/frontend/config-override.js +++ /dev/null @@ -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; -}; \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 1f0d5c2..860d178 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -25,13 +25,10 @@ "start": "react-scripts start", "start:pro": "set REACT_APP_ENABLE_PRO=true&& react-scripts start", "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", "eject": "react-scripts eject", - "type-check": "tsc --noEmit", - "dev": "react-scripts start", - "dev:pro": "set REACT_APP_ENABLE_PRO=true && react-scripts start" + "type-check": "tsc --noEmit" }, "eslintConfig": { "extends": [ @@ -55,4 +52,4 @@ "http-proxy-middleware": "^3.0.5", "react-scripts": "^5.0.1" } -} +} \ No newline at end of file diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e6cb0d0..67a24de 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -23,7 +23,7 @@ import Features from './components/Layout/FooterLinks/Features/Features'; import { CommunityContact, CommunityLegalPage } from './components/Layout/FooterLinks/CommunityLinks/communityLinks'; // 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 let PremiumContact: React.FC = CommunityContact;