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

Every page but the home generates HTML #26

Closed
austriker27 opened this issue Aug 25, 2020 · 3 comments · Fixed by #30
Closed

Every page but the home generates HTML #26

austriker27 opened this issue Aug 25, 2020 · 3 comments · Fixed by #30

Comments

@austriker27
Copy link

austriker27 commented Aug 25, 2020

For some reason my homepage is the only page that doesn't have HTML get generated.

My repo is public here on a branch for netlify: https://github.com/austriker27/davidalindahl__3.0/tree/netlify

With my SSG config here: https://github.com/austriker27/davidalindahl__3.0/blob/netlify/config/statamic/ssg.php
I looked at the statamic official starters and didnt see any key differences in my versus yours ssg.php files.

Here's my ENV has the APP_URL and PHP_VER

I tried adding APP_NAME to see if that helped as well.

This is deployed here:
https://elated-hugle-e6394a.netlify.app/

@jasonvarga
Copy link
Member

Do you get any errors when running the command?

@austriker27
Copy link
Author

austriker27 commented Aug 27, 2020

@jasonvarga thanks so much for looking!

Nope- no errors. The one odd thing is it looks like it generates the / route many, many times.

Here's the full build log: https://gist.github.com/austriker27/7e41e544893e810750076a35b6ea9e30

Also I didn't mention this initially but I'm using PHP 7.4 via the ENVs because of this error:
image

@michaellindahl
Copy link
Contributor

This is due to #27, the collections that do not have an associated route are overriding the home page. You can work around this bug by making sure all collections have routes, simply add the following:

route: /do-not-show/{id}

And then either remove this folder when deploying or just ignore it as it's unlikely someone will navigate to:

do-not-show/1f1c336e-3fe2-4709-8bbf-263cdead55e5/index.html

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

Successfully merging a pull request may close this issue.

3 participants