GithubHelp home page GithubHelp logo

Comments (4)

dullage avatar dullage commented on May 26, 2024 1

I'm currently working on a complete rebuild of the web UI in Vue 3 with Vue Router. As part of this work I should be able to allow for a path prefix to be set at build time.

Unfortunately I can't see a clean way to implement a runtime option but hopefully a build option will suffice for those that need it.

from flatnotes.

fawick avatar fawick commented on May 26, 2024

Having a maintained way to set the base URL to a subfolder would be great, indeed.

First, I tried to come up with a solution by adding the --root_path option to the uvicorn call in entrypoint.sh but that was not enough. The browser tried to load the front-end assets without the subfolder.

Second, I added the base option to vite.config.js. That helped with the JS assets, but all requests to /api/* are still failing (e.g. /api/config or /api/notes/[...]).

from flatnotes.

Code-Otto avatar Code-Otto commented on May 26, 2024

Also check out #49 (And PR #135), there's been a prior attempt at this but disregarded because of the added complexity

I'd appreciate the addition of such a feature since this is the last missing straw for proper Flatnotes integration in my home server

from flatnotes.

fawick avatar fawick commented on May 26, 2024

Thank you @Code-Otto for making me aware on the prior work.

As it looks, #135 is probably rendered obsolete by the switch from Parcel to Vite (and #135 was rejected anyway).

from flatnotes.

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.