diff --git a/frontend/package.json b/frontend/package.json index 2c6e391665..001d380382 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,13 +14,13 @@ "lint": "eslint src --max-warnings 0", "start": "vite", "start:heroku": "UNLEASH_API=https://unleash.herokuapp.com yarn run start", - "start:enterprise": "UNLEASH_API=https://unleash4.herokuapp.com yarn run start", + "start:enterprise": "UNLEASH_API=https://sandbox.getunleash.io UNLEASH_BASE_PATH=/selfhosted/ yarn run start", "start:demo": "UNLEASH_BASE_PATH=/demo/ yarn start", "test": "tsc && vitest run", "test:watch": "vitest watch", "fmt": "prettier src --write --loglevel warn", "fmt:check": "prettier src --check", - "e2e": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all", + "e2e": "yarn run cypress open --config baseUrl='http://localhost:3000/selfhosted' --env AUTH_USER=admin,AUTH_PASSWORD=mx1cvdwSTGz8IWcnpu61SM2Fjd8sqBaD", "e2e:heroku": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=example@example.com", "prepare": "yarn run build" }, diff --git a/frontend/vercel.json b/frontend/vercel.json index 9364a961e7..afb381a2a9 100644 --- a/frontend/vercel.json +++ b/frontend/vercel.json @@ -1,15 +1,15 @@ { "rewrites": [ { - "source": "/api/:match*", + "source": "/selfhosted/api/:match*", "destination": "https://sandbox.getunleash.io/selfhosted/api/:match*" }, { - "source": "/logout", + "source": "/selfhosted/logout", "destination": "https://sandbox.getunleash.io/selfhosted/logout" }, { - "source": "/auth/:match*", + "source": "/selfhosted/auth/:match*", "destination": "https://sandbox.getunleash.io/selfhosted/auth/:match*" }, { "source": "/(.*)", "destination": "/index.html" }