Skip to content

Static sitemap generator ts#10

Open
nkint wants to merge 3 commits intomainfrom
static-sitemap-generator-ts
Open

Static sitemap generator ts#10
nkint wants to merge 3 commits intomainfrom
static-sitemap-generator-ts

Conversation

@nkint
Copy link
Copy Markdown
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
Copy Markdown

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]

@nkint
Copy link
Copy Markdown
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
Copy Markdown
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