Skip to content

Commit

Permalink
fix(perf): turbopack error + made some pages static
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralJakob committed Nov 11, 2024
1 parent 4291548 commit c413505
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
File renamed without changes
File renamed without changes
2 changes: 2 additions & 0 deletions src/app/(auth)/sign-in/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import icon from "~/assets/chatio.png";
import Image from "next/image";
import Link from "next/link";

export const dynamic = "force-static";

const SignInPage = () => {
return (
<main className="relative flex min-h-screen flex-col items-center justify-center">
Expand Down
2 changes: 2 additions & 0 deletions src/app/(auth)/sign-up/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import icon from "~/assets/chatio.png";
import Image from "next/image";
import Link from "next/link";

export const dynamic = "force-static";

const SignInPage = () => {
return (
<main className="relative flex min-h-screen flex-col items-center justify-center">
Expand Down
12 changes: 6 additions & 6 deletions src/app/contributors/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use client";

import fabiusProfile from "/src/assets/fabius-profile.png";
import jakobProfile from "/src/assets/jakob-profile.png";
import Footer from "~/components/footer";
import { cn } from "~/lib/utils";
import {
Expand All @@ -10,17 +8,19 @@ import {
Link as LinkChain,
UsersRound,
} from "lucide-react";
import Image, { type StaticImageData } from "next/image";
import Image from "next/image";
import Link from "next/link";
import { useRouter } from "next/navigation";
import React, { useState } from "react";
import { FaLinkedin } from "react-icons/fa";
import { SiGithub } from "react-icons/si";

export const dynamic = "force-static";

interface ContributorsProps {
name: string;
job: string;
image: StaticImageData;
image: string;
github?: string;
website?: string;
linkedin?: string;
Expand All @@ -30,15 +30,15 @@ const contributorList: ContributorsProps[] = [
{
name: "Fabius Schurig",
job: "Engineer & Designer",
image: fabiusProfile,
image: "/contributors/fabius-profile.png",
github: "https://github.com/Gamius00",
website: "https://schurig.tech",
linkedin: "https://www.linkedin.com/in/fabius-schurig-80713b284/",
},
{
name: "Jakob Rössner",
job: "Engineer",
image: jakobProfile,
image: "/contributors/jakob-profile.png",
github: "https://github.com/FleetAdmiralJakob",
website: "https://roessner.tech",
linkedin: "https://www.linkedin.com/in/jakobroessner/",
Expand Down
2 changes: 2 additions & 0 deletions src/app/home/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import PublicHomepage from "~/app/public-homepage";

export const dynamic = "force-static";

export default function Homepage() {
return <PublicHomepage />;
}
2 changes: 2 additions & 0 deletions src/app/legal/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const dynamic = "force-static";

const Legal = () => {
return <main>Legal</main>;
};
Expand Down

0 comments on commit c413505

Please sign in to comment.