Skip to content

Commit

Permalink
Update to Next.js 14
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Jul 31, 2024
1 parent 06cf204 commit 08afe3d
Show file tree
Hide file tree
Showing 5 changed files with 1,166 additions and 301 deletions.
2 changes: 1 addition & 1 deletion app/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function SearchBar() {
loadOptions={performSearch}
autoFocus
inputId={useId()}
ref={ref => (selectRef.current = ref)}
ref={selectRef}
noOptionsMessage={() => 'No Results'}
loadingMessage={() => 'loading...'}
placeholder="Search for blocks, accounts, transactions, programs, and tokens"
Expand Down
12 changes: 7 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ import { Navbar } from '@components/Navbar';
import { SearchBar } from '@components/SearchBar';
import { ClusterProvider } from '@providers/cluster';
import { ScrollAnchorProvider } from '@providers/scroll-anchor';
import type { Viewport } from 'next';
import { Rubik } from 'next/font/google';
import { Metadata } from 'next/types';

export const metadata: Metadata = {
description: 'Inspect transactions, accounts, blocks, and more on the Solana blockchain',
manifest: '/manifest.json',
title: 'Explorer | Solana',
viewport: {
initialScale: 1,
maximumScale: 1,
width: 'device-width',
},
};

export const viewport: Viewport = {
initialScale: 1,
maximumScale: 1,
width: 'device-width',
};

const rubikFont = Rubik({
Expand Down
3 changes: 2 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const SUPPLY_ALIASES = ['accounts', 'accounts/top'];
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
// FIXME: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout
missingSuspenseWithCSRBailout: false,
},
images: {
remotePatterns: [
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
"cross-fetch": "^3.1.5",
"elfy": "^1.0.0",
"eslint": "8.39.0",
"eslint-config-next": "13.4.0",
"eslint-config-next": "14.2.5",
"humanize-duration-ts": "^2.1.1",
"moment": "^2.29.4",
"next": "13.4.0",
"next": "14.2.5",
"p-limit": "^3.1.0",
"pako": "^2.1.0",
"react": "18.2.0",
"react": "18.3.1",
"react-chartjs-2": "^5.2.0",
"react-content-loader": "^6.1.0",
"react-countup": "^6.4.0",
"react-dom": "18.2.0",
"react-dom": "18.3.1",
"react-error-boundary": "^4.0.11",
"react-feather": "^2.0.10",
"react-json-view": "^1.21.3",
Expand All @@ -71,8 +71,8 @@
"@types/chart.js": "^2.9.34",
"@types/node": "18.16.3",
"@types/pako": "^2.0.3",
"@types/react": "18.2.0",
"@types/react-dom": "18.2.1",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-select": "3.1.2",
"@types/testing-library__jest-dom": "5.14.5",
"bootstrap": "^5.1.3",
Expand Down
Loading

0 comments on commit 08afe3d

Please sign in to comment.