Closed devdog66 closed 2 months ago
Sorry about the delay, been working hard on the @astrolicious/studiocms
project :sweat_smile:
have you set your CONTENT_API_KEY? as per these docs ?
Also please note, that Astro-GhostCMS by default will auto inject the default theme into the default route: /
also known as the baseroute, so if you have any files in your /src/pages/
that conflict with this that could also cause the issue of things not working.
if you could, please enable verbose mode and provide the log output from Astro startup.
I will also note, that i also just noticed my personal ghost server has gone offline... i will work to bring that back online, so i can update and refactor the ghostCMS package to the most recent versions of astro, as this project has fallen behind in its updates :sweat_smile: this is primarily due to the fact that I have been focused on my being a part of the StudioCMS
project, and getting it up and running!
Branch issue-140-Index_html_not_being_created_dur created!
Branch issue-140-Index_html_not_being_created_dur created!
Eh... right.... i forgot about you... bad bot...
No worries.
I was able to code an importer script myself that just pulls in posts and pages from Ghost. I used some of the code from your repo to get me a head start on that. Thank you again for sharing your awesome work.
My needs are not as extensive as what you are doing with the astro-ghostcms project.
I will have to check out studio CMS.
Thanks again
Mike
From: Adam Matthiesen @.> Sent: Tuesday, June 25, 2024 6:47 AM To: MatthiesenXYZ/astro-ghostcms @.> Cc: Mike Sanders @.>; Author @.> Subject: Re: [MatthiesenXYZ/astro-ghostcms] Index.html not being created during npm run build step (Issue #140)
Sorry about the delay, been working hard on the @astrolicious/studiocms project 😅
have you set your CONTENT_API_KEY? as per these docs https://astro-ghostcms.xyz/intro/integration-mode/manual/#install ?
Also please note, that Astro-GhostCMS by default will auto inject the default theme into the default route: / also known as the baseroute, so if you have any files in your /src/pages/ that conflict with this that could also cause the issue of things not working.
if you could, please enable verbose mode and provide the log output from Astro startup.
— Reply to this email directly, view it on GitHub https://github.com/MatthiesenXYZ/astro-ghostcms/issues/140#issuecomment-2188726147 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BIGDGIQPCMH4O4OSACNY6WLZJFKCNAVCNFSM6AAAAABIKNB3PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYG4ZDMMJUG4 . You are receiving this because you authored the thread.Message ID: @.***>
First, excellent project here. When running npm run build and then npm run preview, there is no resource created for / resulting in 404 page showing in browsers.
Any known path always results in the 404 page.
Additional context Also, I used the manual method to install this fine tool, although, I installed it over an existing Astro project with basic html content.
Here is my package.json { "name": "static-app", "type": "module", "version": "0.0.1", "scripts": { "dev": "astro dev", "start": "astro dev", "build": "astro check && astro build", "preview": "astro preview", "deploy": "shx cp -r dist/* ../client-app/public", "astro": "astro" }, "dependencies": { "@astrojs/check": "^0.7.0", "@matthiesenxyz/astro-ghostcms": "^3.3.5", "astro": "^4.9.1", "typescript": "^5.4.5" }, "devDependencies": { "shx": "^0.3.4" } }
astro.config.mjs import { defineConfig } from 'astro/config'; import astroGhostCMS from '@matthiesenxyz/astro-ghostcms';
// https://astro.build/config export default defineConfig({ server: { host: "127.0.0.1", port: 8088 }, site: 'https://example.com', integrations: [ astroGhostCMS({ //
ghostURL
Recommended to set here, Can also set in .env as CONTENT_API_URL ghostURL: "http://ghostcms.meikos.internal", }) ] });