Move to pnpm
This commit is contained in:
parent
6d8999dbf5
commit
2d099120fa
10
package.json
10
package.json
|
|
@ -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
3953
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user