mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
trying to resolve next/font bug
This commit is contained in:
3
package-lock.json
generated
3
package-lock.json
generated
@@ -57,7 +57,7 @@
|
|||||||
"pg": "^8.13.1",
|
"pg": "^8.13.1",
|
||||||
"postgres": "^3.4.5",
|
"postgres": "^3.4.5",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"react": "18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"react-icons": "^5.3.0",
|
"react-icons": "^5.3.0",
|
||||||
"sha2": "@oslojs/crypto/sha2",
|
"sha2": "@oslojs/crypto/sha2",
|
||||||
@@ -10016,6 +10016,7 @@
|
|||||||
"version": "18.2.0",
|
"version": "18.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
|
||||||
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
|
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loose-envify": "^1.1.0"
|
"loose-envify": "^1.1.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
"pg": "^8.13.1",
|
"pg": "^8.13.1",
|
||||||
"postgres": "^3.4.5",
|
"postgres": "^3.4.5",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"react": "18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"react-icons": "^5.3.0",
|
"react-icons": "^5.3.0",
|
||||||
"sha2": "@oslojs/crypto/sha2",
|
"sha2": "@oslojs/crypto/sha2",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { getUserByUUID } from "@actions/userActions";
|
import { getUserByUUID } from "@actions/userActions";
|
||||||
import { NextPage } from "next";
|
import { NextPage } from "next";
|
||||||
import { Herr_Von_Muellerhoff } from "next/font/google";
|
|
||||||
|
|
||||||
export default async function UserProfilePage(props: any) {
|
export default async function UserProfilePage(props: any) {
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
'use server'
|
'use server'
|
||||||
export const ProductPage = async (props: any) => {
|
interface ProductPageProps {
|
||||||
|
data: {
|
||||||
|
modelnumber: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export const ProductPage = async (props: ProductPageProps) => {
|
||||||
return (
|
return (
|
||||||
<div className="fixed pin z-50 overflow-auto bg-smoke-light flex">
|
<div className="fixed pin z-50 overflow-auto bg-smoke-light flex">
|
||||||
{props.data.modelnumber}
|
{props.data.modelnumber}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { cache } from "react";
|
//import { cache } from "next/cache";
|
||||||
import { cookies } from "next/headers";
|
import { cookies } from "next/headers";
|
||||||
import type { Session, User } from "lucia";
|
import type { Session, User } from "lucia";
|
||||||
import { lucia } from "@/lib/auth";
|
import { lucia } from "@/lib/auth";
|
||||||
@@ -37,4 +37,4 @@ export const uncachedValidateRequest = async (): Promise<
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const validateRequest = cache(uncachedValidateRequest);
|
export const validateRequest = uncachedValidateRequest;
|
||||||
|
|||||||
Reference in New Issue
Block a user