Skip to content

Commit

Permalink
[fix]: Fix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuma Kira committed Dec 5, 2024
1 parent 51463a4 commit ed955ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/contexts/ServerSideData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from "react";
import { PrismaClient } from 'portfolio-prisma'

type ConfigEntity = Awaited<ReturnType<PrismaClient['config']['findMany']>>[number]
type Config = {
export type Config = {
[key in ConfigEntity['name']]: ConfigEntity['value']
}
export type ServerSideData = {
Expand Down
3 changes: 1 addition & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import type { Metadata } from "next";
import StyledComponentsRegistry from './lib/registry'
import fonts from './fonts'
import ServerSideDataProvider from "./contexts/ServerSideData";
import ServerSideDataProvider, { Config } from "./contexts/ServerSideData";

import type { Schema } from "../amplify/data/resource"
import { Amplify } from "aws-amplify"
import outputs from "../amplify_outputs.json"
import { generateClient } from "aws-amplify/api"
import { Config } from "./lib/serverSideData"

Amplify.configure(outputs)

Expand Down

0 comments on commit ed955ae

Please sign in to comment.