1
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:
2024-02-19 15:25:28 -05:00
parent 7080350ee7
commit e5c553cea8
7 changed files with 151 additions and 100 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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/" },