Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements - Update browser list, include new app router metadata #292

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
@@ -0,0 +1,2 @@
NEXT_PUBLIC_SITE_BASE_URL=http://localhost:3000
# ANALYZE=
20 changes: 20 additions & 0 deletions app/layout.tsx
@@ -1,5 +1,25 @@
import { Metadata } from "next"
import { env } from "env.mjs"
import "styles/tailwind.css"

export const metadata: Metadata = {
title: {
default: "Blazity | next-enterprise",
template: "Blazity | %s",
},
description: "Blazity next-js boilerplate for enterprise applications",
keywords: "next-js, next-enterprise, blazity, boilerplate, enterprise",
icons: "/logo.png",
openGraph: {
images: "/logo.png",
type: "website",
},
metadataBase: new URL(env.NEXT_PUBLIC_SITE_BASE_URL || "http://localhost:3000"),
twitter: {
images: "/logo.png",
},
}

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
Expand Down
2 changes: 2 additions & 0 deletions env.mjs
Expand Up @@ -7,9 +7,11 @@ export const env = createEnv({
.enum(["true", "false"])
.optional()
.transform((value) => value === "true"),
NEXT_PUBLIC_SITE_BASE_URL: z.string().url().optional(),
},
client: {},
runtimeEnv: {
ANALYZE: process.env.ANALYZE,
NEXT_PUBLIC_SITE_BASE_URL: process.env.NEXT_PUBLIC_SITE_BASE_URL,
},
})
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -47,6 +47,7 @@
"@semantic-release/release-notes-generator": "^12.1.0",
"@t3-oss/env-nextjs": "^0.7.1",
"@vercel/otel": "^0.3.0",
"caniuse-lite": "^1.0.30001612",
"class-variance-authority": "^0.7.0",
"lodash": "^4.17.21",
"next": "^14.0.3",
Expand Down
Binary file added public/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 8 additions & 3 deletions yarn.lock
Expand Up @@ -6702,9 +6702,14 @@ can-bind-to-host@^1.1.1:
integrity sha512-CqsgmaqiyFRNtP17Ihqa/uHbZxRirntNVNl/kJz31DLKuNRfzvzionkLoUSkElQ6Cz+cpXKA3mhHq4tjbieujA==

caniuse-lite@^1.0.30001406, caniuse-lite@^1.0.30001538, caniuse-lite@^1.0.30001541:
version "1.0.30001549"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001549.tgz#7d1a3dce7ea78c06ed72c32c2743ea364b3615aa"
integrity sha512-qRp48dPYSCYaP+KurZLhDYdVE+yEyht/3NlmcJgVQ2VMGt6JL36ndQ/7rgspdZsJuxDPFIo/OzBT2+GmIJ53BA==
version "1.0.30001612"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001612.tgz"
integrity sha512-lFgnZ07UhaCcsSZgWW0K5j4e69dK1u/ltrL9lTUiFOwNHs12S3UMIEYgBV0Z6C6hRDev7iRnMzzYmKabYdXF9g==

caniuse-lite@^1.0.30001612:
version "1.0.30001612"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001612.tgz#d34248b4ec1f117b70b24ad9ee04c90e0b8a14ae"
integrity sha512-lFgnZ07UhaCcsSZgWW0K5j4e69dK1u/ltrL9lTUiFOwNHs12S3UMIEYgBV0Z6C6hRDev7iRnMzzYmKabYdXF9g==

cardinal@^2.1.1:
version "2.1.1"
Expand Down