#Changing index.html to app.html with Router with a static file for index.html

9 messages Β· Page 1 of 1 (latest)

lilac rain
#

Hi all πŸ™‚ I have a quick question I've been battling for about 5 hours now.

I'm looking at a Hybrid of Static rendered pages 1 of which is the index.html and then the user account being Vite Vue Router. After a battle I figure start from the beginning and just change a newely created vite rout project and merely change the index.html to app.html. After tinkering I managed to get it to work on going to 'localhost:5173/app' but if I try to go directly to 'localhostL5173/about' it 404's because it still wants to point at '/'.

Anyhow, I guess as the title says, is this possible and do you need any more details from me about this?

Thank you very much in advance

DKSubconscious

dusk bane
lilac rain
#

Thank you Ross for the quick response, I ended up dancing around the rollup options and sort of got it working, BUT, if I then went directly to the about page it would 404 because it still sees '/' as the root, is this the sort of thing that would be dealt with in the api plugin configure server part... Its the configuration part that is the brick wall πŸ˜› THere doesn't seem to be anybody else on the internet that wants the index page to be static and the app to target another page from my searches, OR, there are technical terms for it that are beyond my understanding and I've read it before and passed it by πŸ˜›

#

I'll have to get as far as I was last night and then just make a public repo or something I think.

dusk bane
#

Check out Nuxt or Astro perhaps if you don’t get a custom solution figured out. You can make a multipage site like you are wanting with one static and one dynamic. And you can still use vue

lilac rain
lilac rain