feat(env variables): accessible project variabes

This commit is contained in:
Walid 2022-03-16 18:31:33 +01:00
parent fec19d4976
commit f2f8f9cf76
2 changed files with 10 additions and 4 deletions

View File

@ -2,15 +2,15 @@ import NextHead from "next/head";
const Head: React.FC = () => { const Head: React.FC = () => {
const data = { const data = {
title: "Project", title: process.env.NEXT_PUBLIC_PROJECT_NAME,
description: process.env.NEXT_PUBLIC_PROJECT_DESCRIPTION,
image: "/images/icons/64x64.png", image: "/images/icons/64x64.png",
description: "Your website description here.",
url: "https://urlwebsite.fr/", url: "https://urlwebsite.fr/",
}; };
return ( return (
<NextHead> <NextHead>
<title>Walid Korchi</title> <title>{data.title}</title>
<link rel="icon" type="image/png" href={data.image} /> <link rel="icon" type="image/png" href={data.image} />
<link rel="apple-touch-icon" href={data.image} /> <link rel="apple-touch-icon" href={data.image} />

View File

@ -1,7 +1,13 @@
import type { NextPage } from "next"; import type { NextPage } from "next";
import Head from "../components/Head";
const Home: NextPage = () => { const Home: NextPage = () => {
return <></>; return (
<>
<Head />
</>
);
}; };
export default Home; export default Home;