Move to pnpm

This commit is contained in:
sianida26 2024-03-13 22:40:33 +07:00
parent 6d8999dbf5
commit 2d099120fa
5 changed files with 3962 additions and 9 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -3,11 +3,11 @@
"version": "0.0.1",
"private": true,
"scripts": {
"check-env": "bun run ./env.ts",
"dev": "bun run check-env && bunx next dev",
"build": "bun run check-env && bunx next build",
"start": "bun run check-env && bunx next start",
"lint": "bunx next lint"
"check-env": "ts-node env.ts && run ./env.ts",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"

3953
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -12,8 +12,8 @@ import ContentType from "@/types/ContentType";
export default function onlyAllowFollowingContentType(
contentTypes: ContentType & (string | {}) | ContentType[] | (string | {})[]
) {
// Retrieve the current request's content type.
const currentContentType = headers().get("Content-Type");
// Retrieve the current request's content type and ignore any parameters.
const currentContentType = headers().get("Content-Type")?.split(';')[0].trim();
// Normalize the input parameter to an array to simplify the inclusion check.
const allowedContentTypes = Array.isArray(contentTypes)

View File

@ -1,9 +1,9 @@
import { Menu, rem } from "@mantine/core";
import React from "react";
import { UserMenuItem } from "../types/UserMenuItem";
import { UserMenuItem as UserMenuItemType } from "../types/UserMenuItem";
interface Props {
item: UserMenuItem;
item: UserMenuItemType;
}
export default function UserMenuItem({ item }: Props) {