Skip to content
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

Closed
devdog66 opened this issue May 27, 2024 · 5 comments
Closed

Index.html not being created during npm run build step #140

devdog66 opened this issue May 27, 2024 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@devdog66
Copy link

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.

  • OS: Everything is a VirtualBox Guest, Windows 11 for running the project , Ubuntu 20 for Ghost instance, Debian for MariaDB.
  • Browsers Chrome, Firefox, Falkon(with javascript disabled)
  • Version

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",
})
]
});

@Adammatthiesen
Copy link
Member

Sorry about the delay, been working hard on the @astrolicious/studiocms project 😅

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.

@Adammatthiesen
Copy link
Member

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 StudioCMS project, and getting it up and running!

@Adammatthiesen Adammatthiesen self-assigned this Jun 25, 2024
Copy link
Contributor

Branch issue-140-Index_html_not_being_created_dur created!

create-issue-branch bot added a commit that referenced this issue Jun 25, 2024
@Adammatthiesen Adammatthiesen added the question Further information is requested label Jun 25, 2024
@Adammatthiesen
Copy link
Member

Branch issue-140-Index_html_not_being_created_dur created!

Eh... right.... i forgot about you... bad bot...

@devdog66
Copy link
Author

devdog66 commented Jun 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants