Comments (5)
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.
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.
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.
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.
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)
- bug(gatsby-source-strapi): Request failed with status code 500 HOT 4
- bug(gatsby-source-strapi): fetching content twice (via relationships) fails to transform to Markdown HOT 2
- feat(gatsby-source-strapi): Transform markdown images in-place HOT 1
- bug(gatsby-source-strapi): queryLimit breaks incremental build HOT 4
- bug(gatsby-strapi-source): With external and Strapi images in Markdown, some Strapi images are missing/blended HOT 1
- bug(gatsby-source-strapi): The plugin "gatsby-source-strapi" created a node of a type "File" owned by "gatsby-source-filesystem". HOT 36
- bug(<gatsby-source-strapi>): <"gatsby-source-strapi" threw an error while running the sourceNodes lifecycle> HOT 1
- bug(gatsby-source-strapi): updating a JSON fields gets lost HOT 1
- feat(gatsby-source-strapi): Generated Types HOT 7
- bug(gatsby-plugin-fastify): `assetPrefix` Not Working HOT 3
- feat(gatsby-source-strapi): timeout setting for queries HOT 2
- bug(gatsby source strapi): Components within Dynamic Zones are not "getting through" HOT 4
- bug(gatsby-source-airtable): Duplicate Dot in File Extension HOT 4
- bug(gatsby-plugin-fastify): Doesn't work as expected for SSR pages HOT 6
- bug(gatsby-plugin-fastify): Server function throws 'stream.on is not a function' after being called. HOT 4
- bug(gatsby-plugin-fastify): SSR pages don't work at all on Gatsby-Wordpress site HOT 1
- feat(gatsby-source-strapi): support for Strapi 5
- bug(gatsby-source-strapi): GraphQL fragment queries only work if all possible components of a dynamic zone are actually used in the current content HOT 2
- bug(gatsby-source-strapi): can't get strapi component data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.