stash icon indicating copy to clipboard operation
stash copied to clipboard

"/custom/index.html" 302 redirected to error page

Open zosky opened this issue 2 years ago • 0 comments

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

  1. make new app (i like vite+vue3) npm create vite@latest my-vue-app -- --template vue
  2. set base: "/custom/" in vite.config.js
  3. build & deploy: npm run build && cp -drv ./build ~/.stash/vueApp
  4. 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

this vueApp.zip

  • 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

zosky avatar Nov 16 '22 04:11 zosky