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",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"check-env": "bun run ./env.ts",
|
"check-env": "ts-node env.ts && run ./env.ts",
|
||||||
"dev": "bun run check-env && bunx next dev",
|
"dev": "next dev",
|
||||||
"build": "bun run check-env && bunx next build",
|
"build": "next build",
|
||||||
"start": "bun run check-env && bunx next start",
|
"start": "next start",
|
||||||
"lint": "bunx next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"prisma": {
|
"prisma": {
|
||||||
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
|
"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(
|
export default function onlyAllowFollowingContentType(
|
||||||
contentTypes: ContentType & (string | {}) | ContentType[] | (string | {})[]
|
contentTypes: ContentType & (string | {}) | ContentType[] | (string | {})[]
|
||||||
) {
|
) {
|
||||||
// Retrieve the current request's content type.
|
// Retrieve the current request's content type and ignore any parameters.
|
||||||
const currentContentType = headers().get("Content-Type");
|
const currentContentType = headers().get("Content-Type")?.split(';')[0].trim();
|
||||||
|
|
||||||
// Normalize the input parameter to an array to simplify the inclusion check.
|
// Normalize the input parameter to an array to simplify the inclusion check.
|
||||||
const allowedContentTypes = Array.isArray(contentTypes)
|
const allowedContentTypes = Array.isArray(contentTypes)
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
import { Menu, rem } from "@mantine/core";
|
import { Menu, rem } from "@mantine/core";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { UserMenuItem } from "../types/UserMenuItem";
|
import { UserMenuItem as UserMenuItemType } from "../types/UserMenuItem";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
item: UserMenuItem;
|
item: UserMenuItemType;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function UserMenuItem({ item }: Props) {
|
export default function UserMenuItem({ item }: Props) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user