mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
FIx vercel
This commit is contained in:
parent
80df4dc970
commit
0c6b391195
@ -14,13 +14,13 @@
|
|||||||
"lint": "eslint src --max-warnings 0",
|
"lint": "eslint src --max-warnings 0",
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
"start:heroku": "UNLEASH_API=https://unleash.herokuapp.com yarn run start",
|
"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",
|
"start:demo": "UNLEASH_BASE_PATH=/demo/ yarn start",
|
||||||
"test": "tsc && vitest run",
|
"test": "tsc && vitest run",
|
||||||
"test:watch": "vitest watch",
|
"test:watch": "vitest watch",
|
||||||
"fmt": "prettier src --write --loglevel warn",
|
"fmt": "prettier src --write --loglevel warn",
|
||||||
"fmt:check": "prettier src --check",
|
"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",
|
"e2e:heroku": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=example@example.com",
|
||||||
"prepare": "yarn run build"
|
"prepare": "yarn run build"
|
||||||
},
|
},
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"rewrites": [
|
"rewrites": [
|
||||||
{
|
{
|
||||||
"source": "/api/:match*",
|
"source": "/selfhosted/api/:match*",
|
||||||
"destination": "https://sandbox.getunleash.io/selfhosted/api/:match*"
|
"destination": "https://sandbox.getunleash.io/selfhosted/api/:match*"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "/logout",
|
"source": "/selfhosted/logout",
|
||||||
"destination": "https://sandbox.getunleash.io/selfhosted/logout"
|
"destination": "https://sandbox.getunleash.io/selfhosted/logout"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "/auth/:match*",
|
"source": "/selfhosted/auth/:match*",
|
||||||
"destination": "https://sandbox.getunleash.io/selfhosted/auth/:match*"
|
"destination": "https://sandbox.getunleash.io/selfhosted/auth/:match*"
|
||||||
},
|
},
|
||||||
{ "source": "/(.*)", "destination": "/index.html" }
|
{ "source": "/(.*)", "destination": "/index.html" }
|
||||||
|
Loading…
Reference in New Issue
Block a user