Skip to content

Commit

Permalink
general: sitemap experiment (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz authored Nov 13, 2023
1 parent db0d83d commit ab1969c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pages/sitemap.txt.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { fetchText } from '../src/services/fetch';

const Sitemap = () => null;

export const getServerSideProps = async ({ res }) => {
const content = await fetchText(
'https://zbycz.github.io/osm-static/sitemap.txt',
);

res.setHeader('Content-Type', 'text/plain');
res.write(content);
res.end();

return {
props: {},
};
};

export default Sitemap;

1 comment on commit ab1969c

@vercel
Copy link

@vercel vercel bot commented on ab1969c Nov 13, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

osmapp – ./

osmapp-zbycz.vercel.app
osmapp.vercel.app
osmapp-git-master-zbycz.vercel.app
osmapp.org

Please sign in to comment.