mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-01-14 10:42:56 -05:00
finally fix slow typescript compilation!
see https://github.com/stitchesjs/stitches/issues/1038
This commit is contained in:
@@ -6,4 +6,4 @@ import path from "path";
|
||||
export const NOTES_DIR = path.join(process.cwd(), "notes");
|
||||
|
||||
// normalize the timestamp saved when building/deploying (see next.config.js) and fall back to right now:
|
||||
export const RELEASE_DATE = new Date(process.env.NEXT_PUBLIC_RELEASE_DATE ?? Date.now()).toISOString();
|
||||
export const RELEASE_DATE = new Date(process.env.NEXT_PUBLIC_RELEASE_DATE || Date.now()).toISOString();
|
||||
|
||||
@@ -134,7 +134,7 @@ export const articleJsonLd: Pick<ArticleJsonLdProps, "authorName" | "publisherNa
|
||||
};
|
||||
|
||||
// Re-export icons to use their static image data elsewhere
|
||||
export const favicons: Record<string, StaticImageData> = {
|
||||
export const favicons: { [key: string]: StaticImageData } = {
|
||||
faviconIco,
|
||||
faviconPng,
|
||||
appleTouchIconPng,
|
||||
|
||||
@@ -16,7 +16,7 @@ export type BuildFeedOptions = {
|
||||
export const buildFeed = async (
|
||||
context: GetServerSidePropsContext<ParsedUrlQuery, PreviewData>,
|
||||
options: BuildFeedOptions
|
||||
): Promise<{ props: Record<string, unknown> }> => {
|
||||
): Promise<{ props: { [key: string]: unknown } }> => {
|
||||
const { res } = context;
|
||||
|
||||
// https://github.com/jpmonette/feed#example
|
||||
|
||||
@@ -12,7 +12,7 @@ const IsomorphicSentry = () => {
|
||||
return Sentry;
|
||||
};
|
||||
|
||||
export const logServerError = async (error: string | Error) => {
|
||||
export const logServerError = async (error: unknown) => {
|
||||
try {
|
||||
const sentryInstance = IsomorphicSentry();
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type * as Stitches from "@stitches/react";
|
||||
|
||||
const normalizeStyles: Record<string, Stitches.CSSProperties> = {
|
||||
const normalizeStyles: { [key: string]: Stitches.CSSProperties } = {
|
||||
"*, ::before, ::after": {
|
||||
boxSizing: "border-box",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user