diff --git a/.gitignore b/.gitignore index 5aa91d5b..1547eac0 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,5 @@ next-env.d.ts .env .yarn/* -.history* \ No newline at end of file +.history* +__ENV.js \ No newline at end of file diff --git a/package.json b/package.json index 3a5f5ef8..517ebca2 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,14 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev", + "dev": "yarn react-env --prefix NEXT_PUBLIC && next dev", "build": "next build", - "start": "next start", + "start": "yarn react-env --prefix NEXT_PUBLIC && next start", "lint": "next lint", "prepare": "husky install" }, "dependencies": { + "@beam-australia/react-env": "^3.1.1", "@headlessui/react": "^1.7.13", "@mdi/js": "^7.1.96", "@mdi/react": "^1.6.1", @@ -81,4 +82,4 @@ "postcss": "^8.4.21", "tailwindcss": "^3.2.4" } -} +} \ No newline at end of file diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 54e8bf3e..84246655 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -1,13 +1,16 @@ -import { Html, Head, Main, NextScript } from 'next/document' +/* eslint-disable @next/next/no-sync-scripts */ +import {Html, Head, Main, NextScript} from "next/document"; export default function Document() { - return ( - - - -
- - - - ) + return ( + + +