Comments (14)
There were two issues that I solved with the latest merge:
-
Your Ghost installation seems to be on an older version where the Content API does not throw an error, if a page is not found. I had to adapt the code to cater for this different behaviour of older APIs.
-
The
div[style]
error occurred on elements with custom styling and has been fixed too.
I hope your site is now compiling fine (it is on my local machine).
By the way, your blog site is really nice, how do you create these awesome feature images? Continue that topic on twitter?
from next-cms-ghost.
I can't reproduce this issue.
Please check, if you still run into this problem after the recent project updates. If the problem persists, I will need a reproduced example and a link to it. Please start from a clean clone and make sure you don't mix npm
and yarn
.
from next-cms-ghost.
Yes, I understand it is hard to look at it without any reproduce :|
But, looks like this happens only when I try to fetch content from my GHOST instance. Doesn't happen while fetching from the default ghost data.
Not sure, if anything in the content can cause it to break like this.
Have tried cleaning cache and using yarn in a clean state, but still seems to happen.
from next-cms-ghost.
Thanks for the additional info. Could you please create temporary API keys in your Ghost Admin and publish them here, so I can source your content and get a chance to analyze it further?
from next-cms-ghost.
I cannot reach your Ghost CMS under https://www.crio.do/blog. Please paste exactly the URL that is shown in Ghost Admin under Integrations.
from next-cms-ghost.
Sorry, there was a typo on my end. Am now able to reproduce the issue!
from next-cms-ghost.
Phew! :) Let me know if you need anything else from my side.
from next-cms-ghost.
Just an heads up, I tried your gatsby monorepo as well, but it seems to work perfectly!
No such errors.
from next-cms-ghost.
Thank you @styxlab!
It works now. The only thing where I would require help is, when I try running next export
, it says "Error: Image Optimization using Next.js' default loader is not compatible with next export
"
Is there a way to disable these image optimisations?
Also, thanks for the appreciation. I will continue the conversation on twitter :)
from next-cms-ghost.
Yes, you can turn image optimizations off in appConfig.js
:
// Images
export const nextFeatureImages: boolean = true
export const nextInlineImages: boolean = true
Default is true
but you can set it to false
.
from next-cms-ghost.
Flipped them to false, still fails with the same error :(
from next-cms-ghost.
There seems to be an issue that image optimization cannot be fully turned off in Next.js which currently inhibits next export
. See https://github.com/vercel/next.js/discussions/19372 for further details. Once there is a concise way to switch off the image optimization, I will incorporate it here. May I ask you why you need next export
?
from next-cms-ghost.
Oh okay. So I want to host the website in an S3 bucket, and I guess next export
will generate those build files which I can use for hosting the site. I do not want to do a SSR.
from next-cms-ghost.
Thanks. Will close this thread because I don't want to blur the initial topic. Will open a new one for 'next export'.
from next-cms-ghost.
Related Issues (20)
- Changing theme settings doesn't work HOT 4
- Netlify Deploy workflow fails HOT 9
- next/images on Netlify HOT 2
- ISR on Netlify
- Open the images in full-screen display on click HOT 8
- Can I change my theme. HOT 1
- Pagination is not available HOT 12
- Error: Index creation failed - after adding API URL & Key HOT 10
- Integrate post/draft preview HOT 1
- getting issue on author image HOT 2
- I cant embed html scripts in my posts. HOT 1
- Upgrade Rehype HOT 2
- did you can add search bar HOT 1
- I can't send message in Contact page HOT 1
- Will this not work for Ghost V.5 and why not? HOT 1
- Working with local ghost installation
- TypeError: withImageLoader is not a function (warning [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. HOT 6
- Build error occurred ReferenceError: Cannot access 'api' before init
- Abandoned? HOT 1
- Build specific feed for each author
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 next-cms-ghost.