Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
fix: compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kjxbyz committed Oct 27, 2023
1 parent 207afc8 commit 4988692
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/app/[lng]/[type]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export async function generateMetadata({
params.lng === "en" ? "Blog" : "博客"
} - 童话镇里一枝花, 人美歌甜陈一发.`,
metadataBase: new URL("https://chenyifaer.com"),
themeColor: "#FFF",
icons: {
icon: "/logo.jpg",
},
Expand Down
1 change: 0 additions & 1 deletion app/app/[lng]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export async function generateMetadata({
params.lng === "en" ? "FaForever" : "FaForever"
} - 童话镇里一枝花, 人美歌甜陈一发.`,
metadataBase: new URL("https://chenyifaer.com"),
themeColor: "#FFF",
icons: {
icon: "/logo.jpg",
},
Expand Down
2 changes: 1 addition & 1 deletion app/app/[lng]/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @next/next/no-img-element */
import { ImageResponse } from "next/server";
import { ImageResponse } from "next/og";

export const runtime = "edge";
export const alt = "Precedent - Building blocks for your Next.js project";
Expand Down
3 changes: 3 additions & 0 deletions app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const nextConfig = {
"vercel.com",
],
},
experimental: {
webpackBuildWorker: true,
},
env: {
GIT_COMMIT_SHA:
process.env.GIT_COMMIT_SHA || process.env.VERCEL_GIT_COMMIT_SHA,
Expand Down
1 change: 0 additions & 1 deletion docs/app/[lng]/[type]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export async function generateMetadata({
params.lng === "en" ? "Blog" : "博客"
} - 童话镇里一枝花, 人美歌甜陈一发.`,
metadataBase: new URL("https://chenyifaer.com"),
themeColor: "#FFF",
icons: {
icon: "/faforever/logo.jpg",
},
Expand Down
1 change: 0 additions & 1 deletion docs/app/[lng]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export async function generateMetadata({
params.lng === "en" ? "FaForever" : "FaForever"
} - 童话镇里一枝花, 人美歌甜陈一发.`,
metadataBase: new URL("https://chenyifaer.com"),
themeColor: "#FFF",
icons: {
icon: "/faforever/logo.jpg",
},
Expand Down
2 changes: 1 addition & 1 deletion docs/app/[lng]/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @next/next/no-img-element */
import { ImageResponse } from "next/server";
import { ImageResponse } from "next/og";

export const runtime = "edge";
export const alt = "Precedent - Building blocks for your Next.js project";
Expand Down
3 changes: 3 additions & 0 deletions docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const nextConfig = {
],
unoptimized: true,
},
experimental: {
webpackBuildWorker: true,
},
env: {
VERCEL_GIT_COMMIT_SHA: process.env.VERCEL_GIT_COMMIT_SHA,
NEXT_PUBLIC_GOOGLE_ID: process.env.NEXT_PUBLIC_GOOGLE_ID,
Expand Down

0 comments on commit 4988692

Please sign in to comment.