diff --git a/.env.example b/.env.example index 2097d1b..95986a6 100644 --- a/.env.example +++ b/.env.example @@ -8,6 +8,7 @@ NEXT_PUBLIC_SG721_CODE_ID=1 NEXT_PUBLIC_API_URL=https:// NEXT_PUBLIC_BLOCK_EXPLORER_URL=https://testnet-explorer.publicawesome.dev/stargaze NEXT_PUBLIC_NETWORK=testnet +NEXT_PUBLIC_STARGAZE_WEBSITE_URL=https://testnet.publicawesome.dev NEXT_PUBLIC_WEBSITE_URL=https:// NEXT_PUBLIC_S3_BUCKET= # TODO diff --git a/env.d.ts b/env.d.ts index a63986d..0859147 100644 --- a/env.d.ts +++ b/env.d.ts @@ -22,6 +22,7 @@ declare namespace NodeJS { readonly NEXT_PUBLIC_API_URL: string readonly NEXT_PUBLIC_BLOCK_EXPLORER_URL: string readonly NEXT_PUBLIC_NETWORK: string + readonly NEXT_PUBLIC_STARGAZE_WEBSITE_URL: string readonly NEXT_PUBLIC_WEBSITE_URL: string } } diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 3732a90..3190168 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -29,7 +29,7 @@ import { useEffect, useRef, useState } from 'react' import { toast } from 'react-hot-toast' import { upload } from 'services/upload' import { compareFileArrays } from 'utils/compareFileArrays' -import { MINTER_CODE_ID, SG721_CODE_ID, WHITELIST_CODE_ID } from 'utils/constants' +import { MINTER_CODE_ID, SG721_CODE_ID, STARGAZE_URL, WHITELIST_CODE_ID } from 'utils/constants' import { withMetadata } from 'utils/layout' import { links } from 'utils/links' @@ -436,6 +436,15 @@ const CollectionCreationPage: NextPage = () => { > {transactionHash} + diff --git a/utils/constants.ts b/utils/constants.ts index 3b89c3a..f0e9cfe 100644 --- a/utils/constants.ts +++ b/utils/constants.ts @@ -4,6 +4,7 @@ export const WHITELIST_CODE_ID = parseInt(process.env.NEXT_PUBLIC_WHITELIST_CODE export const PINATA_ENDPOINT_URL = process.env.NEXT_PUBLIC_PINATA_ENDPOINT_URL export const NETWORK = process.env.NEXT_PUBLIC_NETWORK +export const STARGAZE_URL = process.env.NEXT_PUBLIC_STARGAZE_WEBSITE_URL export const BLOCK_EXPLORER_URL = process.env.NEXT_PUBLIC_BLOCK_EXPLORER_URL