Skip to content

Commit

Permalink
Switch edge runtime to node runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
noobnooc committed Mar 18, 2024
1 parent 93935c8 commit d22af7b
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 62 deletions.
2 changes: 0 additions & 2 deletions app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import avatar from "../../public/avatar.png";
import Link from "next/link";
import { dictionaryKeys, getDictionary } from "../../dictionaries";

// export const runtime = "edge";

export async function generateMetadata({
params,
}: {
Expand Down
2 changes: 0 additions & 2 deletions app/[lang]/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Language, getDictionary } from "@/dictionaries";
import { ImageResponse } from "next/og";

export const runtime = "edge";

export const alt = "Nooc's Homepage";
export const size = {
width: 1200,
Expand Down
3 changes: 0 additions & 3 deletions app/[lang]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ import ProfileCard from "../../components/profile-card";
import Image from "next/image";
import { twMerge } from "tailwind-merge";
import subnooc from "../../public/subnooc.png";
import { shuffleArray } from "../../lib/array";
import { getDictionary } from "@/dictionaries";
import Link from "next/link";
import { PencilIcon } from "@heroicons/react/24/solid";

export const runtime = "edge";

function Title({
className,
children,
Expand Down
2 changes: 0 additions & 2 deletions app/[lang]/posts/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { SiX } from "@icons-pack/react-simple-icons";
import { Metadata } from "next";
import { MDXContent } from "@/components/mdx-components";

// export const runtime = "edge";

export async function generateMetadata({
params,
}: {
Expand Down
2 changes: 0 additions & 2 deletions app/[lang]/posts/categories/[categorySlug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { Metadata } from "next";
import { notFound } from "next/navigation";
import { displayDate } from "@/lib/date";

export const runtime = "edge";

export async function generateMetadata({
params,
}: {
Expand Down
2 changes: 0 additions & 2 deletions app/[lang]/posts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { displayDate } from "../../../lib/date";
import { Language, getDictionary } from "@/dictionaries";
import { Metadata } from "next";

export const runtime = "edge";

export async function generateMetadata({
params,
}: {
Expand Down
2 changes: 0 additions & 2 deletions app/[lang]/projects/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { NextResponse } from "next/server";

export const runtime = "edge";

export function GET(req: Request) {
const url = new URL(req.url);
const newUrl = new URL("/works", url.origin);
Expand Down
2 changes: 0 additions & 2 deletions app/[lang]/twitter-image.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Language, getDictionary } from "@/dictionaries";
import { ImageResponse } from "next/og";

export const runtime = "edge";

export const alt = "Nooc's Homepage";
export const size = {
width: 1200,
Expand Down
2 changes: 0 additions & 2 deletions app/[lang]/works/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { twMerge } from "tailwind-merge";
import { getDictionary } from "../../../dictionaries";
import { Metadata } from "next";

export const runtime = "edge";

export async function generateMetadata({
params,
}: {
Expand Down
41 changes: 0 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"classnames": "^2.5.1",
"eslint": "8.56.0",
"eslint-config-next": "^14.1.0",
"framer-motion": "^11.0.14",
"negotiator": "^0.6.3",
"next": "^14.1.3",
"postcss": "^8.4.35",
Expand All @@ -30,7 +29,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rehype-pretty-code": "^0.13.0",
"sharp": "^0.33.2",
"tailwind-merge": "^2.2.1",
"tailwindcss": "^3.4.1",
"typescript": "5.4.2",
Expand Down

0 comments on commit d22af7b

Please sign in to comment.