Git Product home page Git Product logo

Comments (1)

scottbedard avatar scottbedard commented on August 20, 2024

Just thinking out loud here, the fix for this can actually simplify several issues at once. If we write the index.htm file to disk, we should be able to use the application url as the entry point instead of localhost:8080. Doing this would allow sessions to persist since the host would remain the same, and we could do away with any api proxying. We also should get proper October error screens without any extra work. And one last bonus, changes to index.htm would be visible with just a page refresh, rather than after a build and restarting the dev server. The only real downside to doing this is it might make it trickier to deploy because we're no longer serving the dev entry point from memory. We'd actually be overwriting the production entry point each time things change. This shouldn't be too much of a problem though, because built files should not be kept in source control anyway.

Update: Even more wins, we could entirely do away with the dev entry point since the dev/production entry will be the same. This would even clean up our typescript integration, since we no longer need to maintain two different entry points depending on the presence of that plugin.

Update 2: The wins just keep piling up with this new approach, we can get rid of the cors logic our index.htm file because requests are no longer cross-origin. In addition to not having to mess with cors, this means the site will even work locally in production mode now.

from vuetober.

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.