Skip to content
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

Vite: Enable history mode in Dev Server #8098

Closed
2 tasks done
dschmidt opened this issue Dec 9, 2022 · 3 comments
Closed
2 tasks done

Vite: Enable history mode in Dev Server #8098

dschmidt opened this issue Dec 9, 2022 · 3 comments
Assignees

Comments

@dschmidt
Copy link
Member

dschmidt commented Dec 9, 2022

Expected behaviour

The oC Web instance served by Vite at https://host.docker.internal:9201/ or http://host.docker.internal:8080 should run with Vue Router in history mode.

TODOs

Ideas

Adding the base tag could be done like this for index.html, but it doesn't work for oidc-callback(-silent).html:

        {
          name: 'add-base',
          transformIndexHtml: {
            transform(html, { bundle }) {
              if (bundle) {
                return
              }
              return [
                {
                  tag: 'base',
                  attrs: {
                    'href': '/'
                  }
               }
              ]
            }
          }
        }
@dschmidt dschmidt self-assigned this Dec 9, 2022
@dschmidt
Copy link
Member Author

dschmidt commented Aug 1, 2023

First task is solved for CERN in #9450.

Second one can probably be solved like this: vitejs/vite#2415 (comment)

@dschmidt
Copy link
Member Author

vitejs/vite#14142 🥳

@dschmidt
Copy link
Member Author

Fixed in #9720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant