diff --git a/package.json b/package.json index 55146ace..9a3b338b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "scripts": { "start": "vite", "build": "vite build", - "build-stage": "env-cmd -f .env.qa vite build", "preview": "vite preview", "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"", "lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"", @@ -95,4 +94,4 @@ "prettier": "^3.2.5", "react-error-overlay": "6.0.11" } -} \ No newline at end of file +} diff --git a/vite.config.mjs b/vite.config.mjs index 077e8101..c75d0b96 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -9,7 +9,7 @@ import jsconfigPaths from 'vite-jsconfig-paths'; export default defineConfig({ plugins: [react(), jsconfigPaths()], // https://github.com/jpuri/react-draft-wysiwyg/issues/1317 - // base: '/free', // accessing env variable is not possible here. So hard coding this. + base: '/free', // accessing env variable is not possible here. So hard coding this. define: { global: 'window' },