Skip to content

Commit

Permalink
add auth basepath
Browse files Browse the repository at this point in the history
  • Loading branch information
Melisa Anabella Rossi committed Mar 7, 2024
1 parent e6e81ae commit 39b26e2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,5 @@
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-node-polyfills": "^0.19.0"
},
"homepage": ""
}
}
3 changes: 1 addition & 2 deletions public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
"repository": {
"type": "git",
"url": "https://github.com/decentraland/auth.git"
},
"homepage": ""
}
}
8 changes: 8 additions & 0 deletions public/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rewrites": [
{
"source": "/[^.]+",
"destination": "/index.html"
}
]
}
5 changes: 5 additions & 0 deletions scripts/prebuild.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ function getPublicUrls() {
VITE_BASE_URL: cdnUrl
}
}
if (isVercel) {
return {
VITE_BASE_URL: undefined
}
}
// localhost
console.log('Using empty pubic url')
return {
Expand Down
9 changes: 5 additions & 4 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"github": {
"silent": true
},
"rewrites": [
"redirects": [
{
"source": "/(.*)",
"destination": "/"
"source": "/",
"destination": "/auth"
}
]
],
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}

0 comments on commit 39b26e2

Please sign in to comment.