mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-28 14:45:52 -04:00
attempt to make edge functions a tad bit lighter
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { baseUrl } from "../lib/config";
|
||||
import type { GetServerSideProps } from "next";
|
||||
|
||||
export const getServerSideProps: GetServerSideProps<Record<string, never>> = async (context) => {
|
||||
@@ -12,7 +11,7 @@ ${
|
||||
? `Disallow: /`
|
||||
: `Allow: /
|
||||
|
||||
Sitemap: ${baseUrl}/sitemap.xml`
|
||||
Sitemap: ${process.env.BASE_URL}/sitemap.xml`
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user