1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00

FIx vercel

This commit is contained in:
sjaanus 2022-09-27 16:34:17 +03:00
parent 80df4dc970
commit 0c6b391195
2 changed files with 5 additions and 5 deletions

View File

@ -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"
},

View File

@ -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" }