Skip to content

Commit

Permalink
fix: redis environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
He1DAr committed Sep 14, 2023
1 parent 8fdc994 commit 914d21d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ jobs:
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
build-args: |
REDIS_URL=${{ secrets.REDIS_URL }}
SEGMENT_WRITE_KEY=${{ secrets.SEGMENT_WRITE_KEY }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DSN=${{ secrets.SENTRY_DSN }}
SENTRY_LOG_LEVEL=debug
X_API_KEY=${{ secrets.X_API_KEY }}
RELEASE_TAG_NAME=${{ github.event.release.tag_name }}

- name: Deployment Info
run: 'echo "::warning::Will deploy docker tag/digest: ${{ steps.docker_meta.outputs.version }}/${{ steps.docker_push.outputs.digest }}"'
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ jobs:
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
build-args: |
REDIS_URL=${{ secrets.REDIS_URL }}
SEGMENT_WRITE_KEY=${{ secrets.SEGMENT_WRITE_KEY }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DSN=${{ secrets.SENTRY_DSN }}
SENTRY_LOG_LEVEL=debug
X_API_KEY=${{ secrets.X_API_KEY }}
RELEASE_TAG_NAME=${{ github.event.release.tag_name }}

- name: Deployment Info
run: 'echo "::warning::Will deploy docker tag/digest: ${{ github.ref_type == "branch" ? ${{ steps.docker_meta.outputs.version }}/${{ steps.docker_push.outputs.digest }} || ${{ github.ref_name }} }}"'
Expand Down
26 changes: 0 additions & 26 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,6 @@ const moduleExports = withBundleAnalyzer({
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
publicRuntimeConfig: {
NEXT_PUBLIC_DEPLOYMENT_URL: process.env.NEXT_PUBLIC_DEPLOYMENT_URL,
NEXT_PUBLIC_TESTNET_API_SERVER: process.env.NEXT_PUBLIC_TESTNET_API_SERVER,
NEXT_PUBLIC_MAINNET_API_SERVER: process.env.NEXT_PUBLIC_MAINNET_API_SERVER,
NEXT_PUBLIC_LEGACY_EXPLORER_API_SERVER: process.env.NEXT_PUBLIC_LEGACY_EXPLORER_API_SERVER,
NEXT_PUBLIC_DEFAULT_POLLING_INTERVAL: process.env.NEXT_PUBLIC_DEFAULT_POLLING_INTERVAL,
NEXT_PUBLIC_SITE_NOTICE_BANNER_LABEL: process.env.NEXT_PUBLIC_SITE_NOTICE_BANNER_LABEL,
NEXT_PUBLIC_SITE_NOTICE_BANNER_MESSAGE: process.env.NEXT_PUBLIC_SITE_NOTICE_BANNER_MESSAGE,
NEXT_PUBLIC_REDIS_URL: process.env.NEXT_PUBLIC_REDIS_URL,
},
env: {
NEXT_PUBLIC_DEPLOYMENT_URL: process.env.NEXT_PUBLIC_DEPLOYMENT_URL,
NEXT_PUBLIC_TESTNET_API_SERVER: process.env.NEXT_PUBLIC_TESTNET_API_SERVER,
NEXT_PUBLIC_MAINNET_API_SERVER: process.env.NEXT_PUBLIC_MAINNET_API_SERVER,
NEXT_PUBLIC_LEGACY_EXPLORER_API_SERVER: process.env.NEXT_PUBLIC_LEGACY_EXPLORER_API_SERVER,
NEXT_PUBLIC_DEFAULT_POLLING_INTERVAL: process.env.NEXT_PUBLIC_DEFAULT_POLLING_INTERVAL,
NEXT_PUBLIC_SITE_NOTICE_BANNER_LABEL: process.env.NEXT_PUBLIC_SITE_NOTICE_BANNER_LABEL,
NEXT_PUBLIC_SITE_NOTICE_BANNER_MESSAGE: process.env.NEXT_PUBLIC_SITE_NOTICE_BANNER_MESSAGE,
NEXT_PUBLIC_REDIS_URL: process.env.NEXT_PUBLIC_REDIS_URL,
SEGMENT_WRITE_KEY: process.env.SEGMENT_WRITE_KEY,
VERSION: process.env.VERSION,
SENTRY_DSN: process.env.SENTRY_DSN,
X_API_KEY: process.env.X_API_KEY,
RELEASE_TAG_NAME: process.env.RELEASE_TAG_NAME,
REDIS_URL: process.env.REDIS_URL,
},
output: 'standalone',
async redirects() {
return [
Expand Down
2 changes: 1 addition & 1 deletion src/common/utils/cache-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let client: Redis;

export function getCacheClient() {
if (!REDIS_URL) {
console.log('REDIS_URL is not defined');
console.log("REDIS_URL doesn't exist.");
return {
get: () => Promise.resolve(),
set: () => undefined,
Expand Down

0 comments on commit 914d21d

Please sign in to comment.