stash
stash copied to clipboard
"/custom/index.html" 302 redirected to error page
Describe the bug
it looks like adding the new app im building inside stash is more complicated that it should be. please have a look at why /custom/index.html
is 302 redirected to an error page.
To Reproduce
- make new app (i like vite+vue3)
npm create vite@latest my-vue-app -- --template vue
- set
base: "/custom/"
invite.config.js
- build & deploy:
npm run build && cp -drv ./build ~/.stash/vueApp
- enable
custom_served_folders
in~/.stash/config.yml
( like/: /home/zosky/.stash/vueApp
)
Expected behavior
- navigating to
<stash>/custom/
should start the app (from ./index.html) - navigating to
<stash>/custom/index.html
... ditto
workaround
-
cp index.html notIndex.html
- the app will start f/
<stash>/custom/notIndex.html
- is the './build' folder from a template (with `base:"/custom/")
- plus a a copy of index.html ...
notIndex.html
let me know if i'm missing something please.
- Stash Version: 0.17.2
- OS: linuxMint
- Browser chrome:107