Skip to content

Commit

Permalink
Merge pull request #99 from P4-Games/develop
Browse files Browse the repository at this point in the history
merge develop into main
  • Loading branch information
dappsar authored Sep 27, 2024
2 parents ed2ebbc + ad9e8a8 commit 68c3a73
Show file tree
Hide file tree
Showing 61 changed files with 4,500 additions and 3,880 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ ARG NEXT_PUBLIC_FROM_ICP
ARG NEXT_PUBLIC_USE_MOCK
ARG NEXT_PUBLIC_UI_URL
ARG NEXT_PUBLIC_ALLOWED_ORIGINS
ARG RECAPTCHA_API_KEY
ARG NEXT_PUBLIC_RECAPTCHA_SITE_KEY
ARG NEXT_PUBLIC_NFT_IMAGE_REPOSITORY

#
# env
Expand All @@ -47,6 +50,9 @@ ENV NEXT_PUBLIC_FROM_ICP $NEXT_PUBLIC_FROM_ICP
ENV NEXT_PUBLIC_USE_MOCK $NEXT_PUBLIC_USE_MOCK
ENV NEXT_PUBLIC_UI_URL $NEXT_PUBLIC_UI_URL
ENV NEXT_PUBLIC_ALLOWED_ORIGINS $NEXT_PUBLIC_ALLOWED_ORIGINS
ENV RECAPTCHA_API_KEY $RECAPTCHA_API_KEY
ENV NEXT_PUBLIC_RECAPTCHA_SITE_KEY $NEXT_PUBLIC_RECAPTCHA_SITE_KEY
ENV NEXT_PUBLIC_NFT_IMAGE_REPOSITORY $NEXT_PUBLIC_NFT_IMAGE_REPOSITORY
#
COPY --from=deps /app/node_modules ./node_modules
COPY . .
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ NODE_PROVIDER_SCROLL_URL='https://lb.drpc.org/ogrpc?network=scroll-sepolia&dkey=
HANDLE_VERCEL_FREE_PLAN_TIMEOUT=true
API3_ENABLED=false
JWT_SECRET='some secret text'
RECAPTCHA_API_KEY={recaptcha api key}

# client side
# client-side
NEXT_PUBLIC_USE_MOCK=true
NEXT_PUBLIC_UI_URL=http://localhost:3000
NEXT_PUBLIC_ALLOWED_ORIGINS=http://localhost:3000
NEXT_PUBLIC_FROM_ICP=true
NEXT_PUBLIC_RECAPTCHA_SITE_KEY={recaptcha side key}
NEXT_PUBLIC_NFT_IMAGE_REPOSITORY={gcp|ipfs|icp}
```

__4. Install Dependencies__:
Expand Down
6 changes: 6 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ steps:
- NEXT_PUBLIC_FROM_ICP=${_NEXT_PUBLIC_FROM_ICP}
- NEXT_PUBLIC_UI_URL=${_NEXT_PUBLIC_UI_URL}
- NEXT_PUBLIC_ALLOWED_ORIGINS=${_NEXT_PUBLIC_ALLOWED_ORIGINS}
- RECAPTCHA_API_KEY=${_RECAPTCHA_API_KEY}
- NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${_NEXT_PUBLIC_RECAPTCHA_SITE_KEY}
- NEXT_PUBLIC_NFT_IMAGE_REPOSITORY=${_NEXT_PUBLIC_NFT_IMAGE_REPOSITORY}

# build the container images
- name: "gcr.io/cloud-builders/docker"
Expand All @@ -40,6 +43,9 @@ steps:
"--build-arg", "MONGODB=${_MONGODB}",
"--build-arg", "MONGODB_BOT=${_MONGODB_BOT}",
"--build-arg", "DB_CHATTERPAY_NAME=${_DB_CHATTERPAY_NAME}",
"--build-arg", "RECAPTCHA_API_KEY=${_RECAPTCHA_API_KEY}",
"--build-arg", "NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${_NEXT_PUBLIC_RECAPTCHA_SITE_KEY}",
"--build-arg", "NEXT_PUBLIC_NFT_IMAGE_REPOSITORY=${_NEXT_PUBLIC_NFT_IMAGE_REPOSITORY}",
"--build-arg", "BOT_API_TOKEN=${_BOT_API_TOKEN}",
"--build-arg", "BOT_API_URL=${_BOT_API_URL}",
"--build-arg", "BOT_API_WAPP_ENABLED=${_BOT_API_WAPP_ENABLED}",
Expand Down
3 changes: 3 additions & 0 deletions example_env
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ HANDLE_VERCEL_FREE_PLAN_TIMEOUT=true
API3_ENABLED=false
JWT_SECRET={some secret text}
NEXT_PUBLIC_FROM_ICP=true
RECAPTCHA_API_KEY={recaptcha api key}

# client-side
NEXT_PUBLIC_USE_MOCK=true
NEXT_PUBLIC_UI_URL=http://localhost:3000
NEXT_PUBLIC_ALLOWED_ORIGINS=http://localhost:3000
NEXT_PUBLIC_RECAPTCHA_SITE_KEY={recaptcha side key}
NEXT_PUBLIC_NFT_IMAGE_REPOSITORY={gcp|ipfs|icp}

2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
},
output: 'standalone',
images: {
domains: ['storage.googleapis.com'],
remotePatterns: [
{
protocol: 'https',
Expand Down
Loading

0 comments on commit 68c3a73

Please sign in to comment.