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

Static sitemap generator ts #10

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

nkint
Copy link
Collaborator

@nkint nkint commented Nov 16, 2020

No description provided.

@nkint nkint requested a review from dbertella November 16, 2020 21:07
@vercel
Copy link

vercel bot commented Nov 16, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/danielebertella/cascinarampina/n4eiwco31
✅ Preview: Failed

[Deployment for 35de916 failed]

generateStatic.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
generateSitemap.js Outdated Show resolved Hide resolved
@nkint
Copy link
Collaborator Author

nkint commented Nov 17, 2020

@dbertella @Alligatore3 see changes.
An XML sitemap can be reached at http://localhost:3000/api/sitemap
Let me know what do you think about it.

edges: { node: { slug: string } }[];
};

const lambdaPagesFilePath = path.join(__dirname, ".", "lib", "sitemap.xml");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks brilliant if it work, change lib to public at the end is that the right place to save this file, do you think we can call this endpoint at build time?

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.

3 participants