Skip to content

Commit

Permalink
chore(deps): bump next from 14.1.1 to 14.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj committed Jun 26, 2024
1 parent 5812c23 commit b15c5ee
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 63 deletions.
14 changes: 7 additions & 7 deletions tooling/template/app/[[...permalink]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const getSchema = async (
)) as IsomerPageSchema

const lastModified =
// @ts-expect-error blah
// @ts-ignore blah
getSitemapXml(sitemap).find(
({ url }) => permalink.join("/") === url.replace(/^\//, ""),
)?.lastModified || new Date().toISOString()
Expand All @@ -52,7 +52,7 @@ const getSchema = async (
)) as IsomerPageSchema

const lastModified =
// @ts-expect-error blah
// @ts-ignore blah
getSitemapXml(sitemap).find(({ url }) => url === "/")?.lastModified ||
new Date().toISOString()

Expand All @@ -63,7 +63,7 @@ const getSchema = async (
}

export const generateStaticParams = () => {
// @ts-expect-error blah
// @ts-ignore blah
return getSitemapXml(sitemap).map(({ url }) => ({
permalink: url.replace(/^\//, "").split("/"),
}))
Expand All @@ -78,10 +78,10 @@ export const generateMetadata = async (
schema.site = {
...config.site,
environment: process.env.NEXT_PUBLIC_ISOMER_NEXT_ENVIRONMENT,
// @ts-expect-error blah
// @ts-ignore blah
siteMap: sitemap,
navBarItems: navbar,
// @ts-expect-error blah
// @ts-ignore blah
footerItems: footer,
lastUpdated,
}
Expand All @@ -99,10 +99,10 @@ const Page = async ({ params }: DynamicPageProps) => {
site={{
...config.site,
environment: process.env.NEXT_PUBLIC_ISOMER_NEXT_ENVIRONMENT,
// @ts-expect-error blah
// @ts-ignore blah
siteMap: sitemap,
navBarItems: navbar,
// @ts-expect-error blah
// @ts-ignore blah
footerItems: footer,
lastUpdated,
}}
Expand Down
8 changes: 4 additions & 4 deletions tooling/template/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export const generateMetadata = async (
schema.site = {
...config.site,
environment: process.env.NEXT_PUBLIC_ISOMER_NEXT_ENVIRONMENT,
// @ts-expect-error blah
// @ts-ignore blah
siteMap: sitemap,
navBarItems: navbar,
// @ts-expect-error blah
// @ts-ignore blah
footerItems: footer,
lastUpdated,
}
Expand All @@ -53,10 +53,10 @@ const NotFound = () => {
site={{
...config.site,
environment: process.env.NEXT_PUBLIC_ISOMER_NEXT_ENVIRONMENT,
// @ts-expect-error blah
// @ts-ignore blah
siteMap: sitemap,
navBarItems: navbar,
// @ts-expect-error blah
// @ts-ignore blah
footerItems: footer,
}}
layout="notfound"
Expand Down
2 changes: 1 addition & 1 deletion tooling/template/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function robots(): MetadataRoute.Robots {
site: {
...config.site,
navBarItems: navbar,
// @ts-expect-error blah
// @ts-ignore blah
footerItems: footer,
lastUpdated,
},
Expand Down
2 changes: 1 addition & 1 deletion tooling/template/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { getSitemapXml } from "@opengovsg/isomer-components"
import type { MetadataRoute } from "next"

export default function sitemap(): MetadataRoute.Sitemap {
// @ts-expect-error blah
// @ts-ignore blah
return getSitemapXml(sitemapJson)
}
106 changes: 58 additions & 48 deletions tooling/template/package-lock.json

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

4 changes: 2 additions & 2 deletions tooling/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next",
"build:local": "rm -rf .next && curl https://raw.githubusercontent.com/isomerpages/isomer-next-build/main/scripts/preBuild.sh | bash && npm run build",
"build:local": "rm -rf .next && curl https://raw.githubusercontent.com/opengovsg/isomer/main/tooling/build/scripts/preBuild.sh | bash && npm run build",
"build": "next build",
"start": "next start",
"lint": "next lint"
Expand All @@ -13,7 +13,7 @@
"@opengovsg/isomer-components": "file:opengovsg-isomer-components-0.0.13.tgz",
"autoprefixer": "^10.0.1",
"dompurify": "^3.0.10",
"next": "14.1.1",
"next": "^14.2.4",
"postcss": "^8",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
Expand Down

0 comments on commit b15c5ee

Please sign in to comment.