Code Monkey home page Code Monkey logo

Comments (5)

moonmeister avatar moonmeister commented on August 15, 2024 1

The many problems with gatsby serve are why this plugin exists.

Okay, I'll try to find some time to look at this.

From my current understanding your current solution shouldn't be correct, the assumption is...if you have a prefix, the non-prefixed path is probably an entirely different server and thus wouldn't be able to handle these routes.

from plugins.

moonmeister avatar moonmeister commented on August 15, 2024 1

Okay, confirmed. I understand what's happening. potentialPagePath seems like the correct move since we already have that. I'm happy to merge a PR on this if you can get that submitted.

from plugins.

moonmeister avatar moonmeister commented on August 15, 2024

This fix seems incorrect to me...those assets should still be served from /gatsby. Are you following the Gatsby Docs and correctly running the build with gatsby build --prefix-paths?

from plugins.

syckki avatar syckki commented on August 15, 2024

@moonmeister

Yes, I did!

I am using gatsby build --prefix-paths in order to build with prefixPath. Right now I am serving my app with that configuration and with that minimal change. I would appreciate to you that you can reproduce my issue following my instrucction.

Include the gatsby build --prefix-paths in the script, since I omite mentioned it before.

Note: in fact gatsby serve --prefix-paths has problems using SSR. And your plugin is better than gatsby serve

from plugins.

syckki avatar syckki commented on August 15, 2024

Thank you for the confirmation! I agree with proceeding with "potentialPagePath". I plan to submit the Pull Request, but I'll do so after the Christmas holidays. I hope you have a wonderful holiday season with your loved ones as well. 🎄☃️

from plugins.

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.