Skip to content

Commit

Permalink
Hardcoding JWT. Expires in 20 days so not critical
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSeldon23 committed Oct 10, 2024
1 parent 04cd6cb commit 11b384c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- name: Build the app
run: CI=false npm run build # Ensure this matches your build script
env:
REACT_APP_CUBE_API_URL: ${{ secrets.REACT_APP_CUBE_API_URL }} # Pass the CUBE_API_URL from GitHub Secrets
REACT_APP_CUBE_TOKEN: ${{ secrets.REACT_APP_CUBE_TOKEN }} # Pass the CUBE_TOKEN from GitHub Secrets
REACT_APP_CUBE_API_URL: ${{ secrets.REACT_APP_CUBE_API_URL }}
REACT_APP_CUBE_TOKEN: ${{ secrets.REACT_APP_CUBE_TOKEN }}

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
4 changes: 2 additions & 2 deletions src/CubeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import React, { createContext, useContext, ReactNode } from "react";
import cubejs, { CubeApi } from "@cubejs-client/core";

// Load environment variables
const CUBE_API_URL = process.env.REACT_APP_CUBE_API_URL;
const CUBE_TOKEN = process.env.REACT_APP_CUBE_TOKEN;
const CUBE_API_URL = "https://api-staging.ortege.ai";
const CUBE_TOKEN = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Img4clpoR3VHSDVRZ3MwemRpUWpBNyJ9.eyJpc3MiOiJodHRwczovL2Rldi16NGNrYWFkNzZlaWlmczNkLnVzLmF1dGgwLmNvbS8iLCJzdWIiOiJmUjBwT1NHNG5vcjlub3M5Q2hmajRhajg1MmVyOXBtREBjbGllbnRzIiwiYXVkIjoiaHR0cHM6Ly9hcGktc3RhZ2luZy5vcnRlZ2UuYWkiLCJpYXQiOjE3MjcyMzMzODUsImV4cCI6MTcyOTgyNTM4NSwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIiwiYXpwIjoiZlIwcE9TRzRub3I5bm9zOUNoZmo0YWo4NTJlcjlwbUQifQ.Wr9CWf_Phi4uUcdgEvmpqXilkb_DCW-XGXdePuMJWpgB6kB_tqvHU3phkO5qZ0AVfiCzN5yFExEbEYrTkG1OcRtIQMxsXyfXbmVhdbsHFc7WiZnyeI1SgPUpdTJPmQI78MINdioh9DgsB9mi4s42mbuCicQ59dDCcV2iDobrnVJrtTF1vt_IraDQ35dN8M4HwMZiMRW_WQoK4t-PPPPBaceBeQe3lYruG9tpEMBmayv-BAK4OypYwddcCUzqFBu4GAkN1rmMmp6ySwHqJfhQvUxMk-4HulRCWXXa9a9QWdyWm4Z5w1AKU9JoGyfKfwzMUrFBFlZFefG1EhyiX9-Y2A";

if (!CUBE_API_URL || !CUBE_TOKEN) {
throw new Error("CUBE_API_URL and CUBE_TOKEN must be defined in environment variables");
Expand Down

0 comments on commit 11b384c

Please sign in to comment.