You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a webpage with base name, say: http://localhost:5173/app
I config vite to have base: '/app/'
I have to access it in http://localhost:5173/app/
If I try to access http://localhost:5173/app, it forces me to go to http://localhost:5173/app/.
(When its deployed to Nginx / served by expressjs.)
I tried config vite to have base: '/app', problem persists.
How can I remove that trailing slash?
Its discussed in
Ability to serve base page without trailing slash · Issue #9236 · vitejs/vite #9236
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a webpage with base name, say:
http://localhost:5173/app
I config vite to have
base: '/app/'
I have to access it in
http://localhost:5173/app/
If I try to access
http://localhost:5173/app
, it forces me to go tohttp://localhost:5173/app/
.(When its deployed to Nginx / served by expressjs.)
I tried config vite to have
base: '/app'
, problem persists.How can I remove that trailing slash?
Its discussed in
Ability to serve base page without trailing slash · Issue #9236 · vitejs/vite
#9236
Is this solved or not?
Beta Was this translation helpful? Give feedback.
All reactions