Skip to content

Commit

Permalink
Update Ponder (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbescodes authored Jun 23, 2024
1 parent 145f950 commit 87fd617
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/ponder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"dependencies": {
"@eidolonkit/contracts": "*",
"@eidolonkit/env": "*",
"@ponder/core": "^0.4.37",
"@ponder/core": "^0.5.0-next.1",
"hono": "^4.4.7",
"viem": "^2.14.1",
"vocs": "^1.0.0-alpha.52"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/ponder/ponder-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file enables type checking and editor autocomplete for this Ponder project.
// After upgrading, you may find that changes have been made to this file.
// If this happens, please commit the changes. Do not manually edit this file.
// See https://ponder.sh/docs/guides/typescript for more information.
// See https://ponder.sh/docs/getting-started/installation#typescript for more information.

declare module "@/generated" {
import type { Virtual } from "@ponder/core";
Expand Down
8 changes: 8 additions & 0 deletions apps/ponder/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @knipignore */
import { ponder } from "@/generated";
import { graphql } from "@ponder/core";
import { cors } from "hono/cors";

ponder.use("*", cors());

ponder.use("/graphql", graphql());
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion packages/config/env/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export const env = createEnv({
},
client: {
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: z.string(),
NEXT_PUBLIC_PONDER_API_URL: z.string().default("http://127.0.0.1:42069"),
NEXT_PUBLIC_PONDER_API_URL: z
.string()
.default("http://127.0.0.1:42069/graphql"),
},
runtimeEnv: {
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID:
Expand Down

0 comments on commit 87fd617

Please sign in to comment.