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:
parent
3036bf2b68
commit
d5f0110602
@ -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`
|
||||
|
@ -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",
|
||||
});
|
||||
|
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user