Skip to content

Commit cf7bc1f

Browse files
authored
Merge pull request #490 from CodeChefVIT/staging
feat: migrate to embedPDF and improve PDF viewer UX and few cleanup
2 parents 7c44f5b + 0f0fc67 commit cf7bc1f

33 files changed

Lines changed: 12771 additions & 752 deletions

.env.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ GOOGLE_CLOUD_BUCKET="" # Your Google Cloud Storage Bucket n
2323
GOOGLE_APPLICATION_CREDENTIALS_JSON="" # The content of the JSON file you download when creating a service account key
2424

2525
# Vercel KV
26-
KV_URL="" # The URL of your Vercel KV instance
27-
KV_REST_API_URL="" # The REST API URL of your Vercel KV instance
28-
KV_REST_API_TOKEN="" # The REST API token for your Vercel KV instance
29-
KV_REST_API_READ_ONLY_TOKEN="" # The read-only REST API token for your Vercel KV instance
26+
# KV_URL="" # The URL of your Vercel KV instance
27+
# KV_REST_API_URL="" # The REST API URL of your Vercel KV instance
28+
# KV_REST_API_TOKEN="" # The REST API token for your Vercel KV instance
29+
# KV_REST_API_READ_ONLY_TOKEN="" # The read-only REST API token for your Vercel KV instance
3030

3131
# Upstash_Redis
3232
UPSTASH_REDIS_REST_URL="" # REST URL of your Upstash Redis database

.github/workflows/node.js.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Amplify-Equivalent PR Checks
2+
3+
on:
4+
pull_request:
5+
branches: [ "staging", "prod" ]
6+
push:
7+
branches: [ "staging", "prod" ]
8+
9+
jobs:
10+
pr-checks:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Enable corepack
17+
run: corepack enable
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
cache: 'pnpm'
24+
25+
- name: Install deps (pnpm)
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: Build (same as Amplify)
29+
run: pnpm run build
30+
env:
31+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
32+
GOOGLE_CLIENT_EMAIL: ${{ secrets.GOOGLE_CLIENT_EMAIL }}
33+
GOOGLE_PRIVATE_KEY: ${{ secrets.GOOGLE_PRIVATE_KEY }}
34+
KV_REST_API_READ_ONLY_TOKEN: ${{ secrets.KV_REST_API_READ_ONLY_TOKEN }}
35+
KV_REST_API_TOKEN: ${{ secrets.KV_REST_API_TOKEN }}
36+
KV_REST_API_URL: ${{ secrets.KV_REST_API_URL }}
37+
KV_URL: ${{ secrets.KV_URL }}
38+
MONGODB_URI: ${{ secrets.MONGODB_URI }}
39+
SERVER_URL: ${{ secrets.SERVER_URL }}
40+
SHEET_ID: ${{ secrets.SHEET_ID }}
41+
GOOGLE_CLOUD_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }}
42+
GOOGLE_CLOUD_BUCKET: ${{ secrets.GOOGLE_CLOUD_BUCKET }}
43+
GOOGLE_APPLICATION_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}
44+
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }}
45+
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ yarn-error.log*
3434
# local env files
3535
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
3636
.env
37-
.env.lcal
37+
.env.local
3838
.env*.local
3939
.env.prod
4040
# vercel

next.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ await import("./src/env.js");
88
const config = {
99
swcMinify: false,
1010
images: {
11-
domains: ["storage.googleapis.com"],
11+
remotePatterns: [
12+
{
13+
protocol: "https",
14+
hostname: "storage.googleapis.com",
15+
},
16+
],
1217
},
1318
async headers() {
1419
return [

0 commit comments

Comments
 (0)