1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2024-11-21 18:16:33 +02:00

fix: linting and env load during build

This commit is contained in:
Bart 2022-11-22 17:29:21 +01:00
parent 3036bf2b68
commit d5f0110602
3 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,6 @@ import { NextPage } from "next";
import { SimpleGrid, Box, Text, Image, Link } from "@chakra-ui/react";
import { Panel } from "../components/Panel";
import { css } from "@emotion/react";
import { IoIosConstruct } from "react-icons/io";
import { PUBLIC_URL } from "../utils/env";
const headerCss = css`

View File

@ -54,7 +54,6 @@ interface FormValues {
export const UserBlueprintCreate: NextPage = () => {
const router = useRouter();
const {
control,
handleSubmit,
@ -62,7 +61,7 @@ export const UserBlueprintCreate: NextPage = () => {
setValue,
setError,
clearErrors,
formState: { errors, isSubmitting, isSubmitSuccessful },
formState: { errors, isSubmitting },
} = useForm<FormValues>({
mode: "onTouched",
});

View File

@ -1,7 +1,8 @@
import { PrismaClient } from "@prisma/client";
import { getEnvOrThrow } from "../env.util";
import { getEnv } from "../env.util";
const url = getEnvOrThrow("DATABASE_URL");
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const url = getEnv("DATABASE_URL")!;
export const prisma = new PrismaClient({
log: ["warn", "error"],