-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Config options in router not honoured #544
Comments
I've been working on this for a long time now. Vue router only accepts the Do you have any ideas on a way to sort this out? |
I guess the only option would be to use an environmental variable, I was also thinking, since routing mode is unlikely to be something the user changes frequently it could be read statically at build time, but this doesn't seem very neat |
The environment variable would work for reading at build time. Though, that would mean adding the build step back into the docker image. Which I guess isn't too bad as it would only have run on first start and change to that variable, but it would mean removing the ability to drop the size of the image by removing all the vue dependencies. |
Ahh it's a tricky one. but I think for now, moving |
I've actually come up with a solution that works! We can add a script tag to the top of This file can even be generated from conf.yml by the server. Those using a static host would have to edit the additional file if they want to change This will allow us to keep shrinking the docker image, and not have to delay startup with a build. What're your thoughts? |
Would that work? I think the Vue router stuff is compiled at build time- I might be wrong, but playing around with it that seemed to be the case. If it works, then that's awesome |
It works in my testing. I think it feels like the router options are done at build time because of how they're loaded as soon as the Vue app starts up with I'll submit it shortly for you to look at. |
you guys fixt it! |
Yay, nice one @ateroz! Glad it's working again now :) |
Yay, nice one @ateroz! Glad it's working again now :) |
Discussed in #542
Originally posted by lephtHanded March 8, 2022
heya!
latest update (or my config) seems borked with the latest docker pull.
the
routingMode
andstartingView
options don't seem to have an effect.i have mine set to
hash
andminimal
respectively and the page loads to the default view.links to
../minimal
or../#/minimal
that I got working from this thread just open the default view now.Probable Cause
The config isn't finished fetching when the
router
is initialisedThe text was updated successfully, but these errors were encountered: