add BASE_PATH variable #874
                  
                    
                      Blackspell01
                    
                  
                
                  started this conversation in
                Feature Request
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Feature Request Type
API
🔖 Feature description
For Home Assistant Ingress it would be perfect to have a BASE_URL env variable like BASE_URL = /api/ingress/dockge.
✔️ Solution
Unfortunately I cant create a PR by myself, but I found out that this can be achieved by only changing the following lines:
vite.config.ts
+ base: "BASE_URL",
router.ts
+ history: createWebHistory("BASE_URL"),
- history: createWebHistory(),
socket.ts
+ socket = io(url, {path: "BASE_URL/socket.io",});
- socket = io(url)
❓ Alternatives
No response
📝 Additional Context
Maybe someone who knows how node js works could implement this. Allthough this project isn't maintained atm, @cmcooper1980 and @hamphh both are actively merging the open PRs in their forks respectively. So maybe this could be implemented somehow...
Beta Was this translation helpful? Give feedback.
All reactions