Giter Site home page Giter Site logo

Comments (4)

undera avatar undera commented on May 29, 2024 1

It's not something that is configurable as of today, but I hear your request and will look onto how to fulfill it sooner.

from komoplane.

undera avatar undera commented on May 29, 2024

Note to myself: vitejs/vite#5081

from komoplane.

undera avatar undera commented on May 29, 2024

To reproduce, used following prompt to ChatGPT:

I want to write a simple Python proxy, need it to test some other project. The proxy should accept all HTTP requests starting with path "/subpath" and forward queries to "http://localhost:8090" to respective subpaths.

Took the resulting Python script and ran it. Worked flawlessly, reproduced the problem.

from komoplane.

undera avatar undera commented on May 29, 2024

I spent some time trying to fix this problem, here are the challenges I discovered:

  1. Due to the use of BrowserRouter, we have a problem of loading JS/CSS assets from index.html. Telling Vite to use ./ as base directory fixes the initial load, but not reloads of internal pages
  2. API calls suffer from the same problem, where relative path of page is different when viewing root page vs /claims vs concrete claim

For further fixing this:

  1. We may need to make base path configurable from helm chart values
  2. or We may switch to HashRouter, keeping in mind the need for drawer tabs to remember current tab in URL

This all will take a bit more time to address

from komoplane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.