-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continuous Deployment breaks subfolder pages #1892
Comments
Hard to say… have you figured out what the code is there? Don't think I've seen that error before. Really sweet looking site btw :-) once we get the showcase up on gatsbyjs.org it'd be great to have this site there. |
Wow! that was fast! thx, yeah sure, it needs some more polishing first (need to reduce the size of the images and fix some responsive issues). Where do you mean with there in "have you figured out what the code is there?"? |
Like what is the source for the code error? E.g. is that the webpack bootstrap? Or something else? |
I'm confused I guess, if you go to that page /om-loppet/5km and open the console you will see it immediately. But from my best guess it looks to be an issue with webpack when being built in bitbucket. |
Don't know if this helps, but this script is what I use to build and deploy both locally and on bitbucket: |
Only thing I can guess is this is a linux vs. mac issue w/ filesystem name diffs. Try replicating the problem on a Linux machine? |
yeah, that could be an issue. I can see if I can reproduce this locally in a linux docker container. |
Yep, you are completely correct, this is related to linux. I created a docker-compose.yml file to test this out.
You run it with: |
So how do I get around fixing this? I’m having the exact same issue it seems: #2399 |
@PiotrF try getting a dev environment setup on Linux either in Node.js or on a VM and then build your site and look for errors? There's some subtle differences between linux and macs that can cause troubles. |
Closing out old issues. Open up a new issue please if you need more help! |
Hi, love this project, and yeah you might recognise me from last years graphql conference in SF where we talked for a long time on the roof. Sorry for taking so long to test this out, but wow what an amazing thing you've built! Wow! 👍 💯
Anyhow, I'm using gatsby build and deploying the public folder to s3 for http://savedalsloppet.se and it works great from my mac, but somehow when testing out automatic deployment through bitbucket pipelines it breaks my subfolder pages. Specifically all pages below /om-loppet i.e.:
And the error I get is not making sense to me at all:
I've tried changing node versions (node:lastest, node:boron) and it doesn't make any difference.
I tested with "prefixPath": "/" in my config without any difference.
And I've searched for a couple hours now on google without result, this is my last resort. :/
Do you have any ideas on what else I can test?
Otherwise I will have to stick deploying manually.
The text was updated successfully, but these errors were encountered: