Skip to content

Commit

Permalink
Update urls
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucca committed Jan 15, 2024
1 parent 6d54d3c commit 1d8cbd0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .docker/web/.env_web
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
NEXT_DB_NAME="squid"
NEXT_DB_USER="appuser"
NEXT_DB_PASS="appuser"
NEXT_DB_HOST="localhost"
NEXT_DB_HOST="api"
NEXT_DB_PORT=23798

# SQUID
NEXT_SHIBUYA_GQL_ENDPOINT="http://localhost:4350/graphql"
NEXT_SHIBUYA_GQL_ENDPOINT="http://api:4350/graphql"

# DOCS
NEXT_PUBLIC_DOCS_URL="http://localhost:3001"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To run the web app along with the Squid node, follow these steps:
- If you prefer running the app without a local Squid node, you can do the following:

1. Open the .env file.
2. Modify the NEXT_SHIBUYA_GQL_ENDPOINT variable to the provided test node.
2. Modify the NEXT_SHIBUYA_GQL_ENDPOINT variable to the provided test node, and also remove the NEXT_PUBLIC_DOCS_URL as the app will automatically redirect to the hosted docs page.

```
NEXT_SHIBUYA_GQL_ENDPOINT="http://18.118.77.170:4350/graphql"
Expand Down
3 changes: 2 additions & 1 deletion src/components/layout/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Image from "next/image";
import Link from "next/link";

import { ConnectButton } from "@/components/ModalWalletProvider/ConnectButton";
import { DOCS_URL } from "@/config/app";
import { ROUTES } from "@/config/routes";

export function TopBar({
Expand All @@ -24,7 +25,7 @@ export function TopBar({
height={50}
/>
</Link>
<Link href="https://docs.xsigners.io/" target="_blank" rel="noopener">
<Link href={DOCS_URL} target="_blank" rel="noopener">
<Typography
variant="caption"
color="primary"
Expand Down
3 changes: 3 additions & 0 deletions src/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ export const IS_DEVELOPMENT =
process.env.NODE_ENV === ("development" as string) ||
process.env.NEXT_PUBLIC_VERCEL_ENV === "preview" ||
process.env.NEXT_PUBLIC_VERCEL_ENV === "development";

export const DOCS_URL =
process.env.NEXT_PUBLIC_DOCS_URL || "https://docs.xsigners.io/";

0 comments on commit 1d8cbd0

Please sign in to comment.