Skip to content

DO NOT MERGE trying out adding a new graphql generated page #3076

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

scottcain
Copy link
Collaborator

No description provided.

@scottcain scottcain marked this pull request as draft April 9, 2025 18:48
@scottcain
Copy link
Collaborator Author

@dannon would you mind taking a look at this and telling me what else is needed? Here's what I'm trying to do: I was given an example of a page that might be nice a table of news items that have "paper" as a tag, so I created a graphql query that (I think) returns the appropriate result, and then I tried adding it to the build, but I don't think it works (going to /newspapers when I'm running locally results in 404) so I probably need some more config that isn't as obvious to me.

Note also that I don't really want to add this to the production site, I just want to learn how to do it. Thanks!

@dannon

This comment was marked as duplicate.

@dannon

This comment was marked as duplicate.

@dannon
Copy link
Member

dannon commented Apr 9, 2025

Sure, I will take a look. Not sure I can get to it today but I will try. Glad to see you experimenting with this!

Holy github mobile update fail. Let me delete the redundant comments...

@dannon
Copy link
Member

dannon commented Apr 28, 2025

@scottcain sorry this took forever for me to pull and run. If you want it to be at /newspapers/, move the file to Index.vue in a /pages/newspapers/. Right now for non-index named components we render a page based on the name, so this would be available at http://localhost:8080/everywhere/news-papers/ locally. (and it does work!)

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 this pull request may close these issues.

2 participants