-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Index.html not being created during npm run build step #140
Comments
Sorry about the delay, been working hard on the 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: 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 😅 this is primarily due to the fact that I have been focused on my being a part of the |
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 <#140 (comment)> , 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_URLghostURL: "http://ghostcms.meikos.internal",
})
]
});
The text was updated successfully, but these errors were encountered: