mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 15:16:40 -04:00
fix /static 404s (not sure why they're happening though?)
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { buildFeed, GetServerSideFeedProps } from "../lib/helpers/build-feed";
|
||||
import { buildFeed } from "../lib/helpers/build-feed";
|
||||
import type { GetServerSideFeedProps } from "../lib/helpers/build-feed";
|
||||
|
||||
export const getServerSideProps: GetServerSideFeedProps = async (context) => {
|
||||
return buildFeed(context, "atom");
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { buildFeed, GetServerSideFeedProps } from "../lib/helpers/build-feed";
|
||||
import { buildFeed } from "../lib/helpers/build-feed";
|
||||
import type { GetServerSideFeedProps } from "../lib/helpers/build-feed";
|
||||
|
||||
export const getServerSideProps: GetServerSideFeedProps = async (context) => {
|
||||
return buildFeed(context, "rss");
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { SitemapStream, SitemapItemLoose, EnumChangefreq } from "sitemap";
|
||||
import { SitemapStream, EnumChangefreq } from "sitemap";
|
||||
import { getAllNotes } from "../lib/helpers/parse-notes";
|
||||
import type { GetServerSideProps } from "next";
|
||||
import type { SitemapItemLoose } from "sitemap";
|
||||
|
||||
export const getServerSideProps: GetServerSideProps<Record<string, never>> = async (context) => {
|
||||
const { res } = context;
|
||||
@ -31,6 +32,7 @@ export const getServerSideProps: GetServerSideProps<Record<string, never>> = asy
|
||||
{ url: "/previously/" },
|
||||
{ url: "/privacy/", priority: 0.1, changefreq: EnumChangefreq.YEARLY },
|
||||
{ url: "/projects/", changefreq: EnumChangefreq.DAILY },
|
||||
{ url: "/tweets/" },
|
||||
{ url: "/uses/" },
|
||||
{ url: "/y2k/" },
|
||||
{ url: "/zip/" },
|
||||
|
Reference in New Issue
Block a user