MatthiesenXYZ / astro-ghostcms

Easily migrate your Ghost Site to Astro, an Astro Integration that turns your Ghost server into a Headless CMS
https://astro-ghostcms.xyz/
MIT License
20 stars 4 forks source link

Tag slug page returns 404 in development environment #99

Closed ii-jj closed 6 months ago

ii-jj commented 6 months ago

Environment: Development

Steps to reproduce:

Expected result: The tag slug page should be accessible and display the correct content. Actual result: The tag slug page returns a 404 error.

And I haven't tested it in the production environment yet.

11:43:49 [WARN] [👻 Astro-GhostCMS/ENV Check] ghostURL is not set in user configuration falling back to environment variable
11:43:49 [👻 Astro-GhostCMS/ENV Check] GhostCMS environment variables are set
11:43:49 [👻 Astro-GhostCMS/Integrations] Configuring Enabled Integrations
11:43:49 [👻 Astro-GhostCMS/Integrations] @astrojs/sitemap integration already exists, skipping...
11:43:49 [👻 Astro-GhostCMS/Integrations] Adding astro-robots-txt integration
11:43:49 [👻 Astro-GhostCMS/Router] Setting up Default 404 Page route
11:43:49 [👻 Astro-GhostCMS/Theme Provider] Theme Provider enabled. Setting up...
11:43:49 [👻 Astro-GhostCMS/Theme Provider] No theme is set, injecting default theme
11:43:49 [👻 Astro-GhostCMS/SatoriOG] OG Image Integration Enabled. Setting up...
11:43:49 [👻 Astro-GhostCMS/RSSGenerator] RSS Feed Enabled. Setting up...
11:43:49 [👻 Astro-GhostCMS/CONFIG] Integration Setup & Configuration Complete
11:43:49 [👻 Astro-GhostCMS/Theme Provider] Provider Setup Complete
11:43:49 [👻 Astro-GhostCMS/SatoriOG] OG Image Integration Setup Complete
11:43:49 [👻 Astro-GhostCMS/RSSGenerator] RSS Feed Setup Complete
11:43:49 [👻 Astro-GhostCMS/DEV] Running Astro-GhostCMS in Deveopment mode 🚀
11:43:50 [👻 Astro-GhostCMS/VERSION CHECK] Astro-GhostCMS is up to date! v3.3.1
11:44:06 [WARN] [router] A `getStaticPaths()` route pattern was matched, but no matching static path was found for requested path `/tag/tech/`.

Possible dynamic routes being matched: node_modules/@matthiesenxyz/astro-ghostcms-theme-default/src/routes/tag/[slug].astro.
11:44:07 [404] /tag/tech/ 260ms
Adammatthiesen commented 6 months ago

I'm not seeing this with my setup, how are your tags setup within ghost?

With my demo setup i have 2 tags with 2 different amounts of posts that have no issue displaying so this is really strange to me...

also tags with 0 posts ghost does not export, if that is the issue.

what is your environment setup? npm, pnpm, yarn? versions?

Adammatthiesen commented 6 months ago

I just saw the pr #100

create-issue-branch[bot] commented 6 months ago

Branch issue-99-Tag_slug_page_returns_404_in_dev created!