Skip to content

Commit

Permalink
chore: last minute changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Nov 10, 2024
1 parent aa8cc43 commit c9dd311
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
NODE_ENV: ${{ github.event_name == 'pull_request' && 'staging' || 'production' }}
ANTEATER_API_KEY: ${{ secrets.ANTEATER_API_KEY }}
2 changes: 1 addition & 1 deletion api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ PORT=8080 # should match the port on the frontend proxy under site/vite.config.t
# GOOGLE_SECRET=<secret>
# GRECAPTCHA_SECRET=<secret>
# ADMIN_EMAILS=["<your email>"]
# ANTEATER_API_KEY=<secret>
# ANTEATER_API_KEY=<secret>
2 changes: 1 addition & 1 deletion api/src/controllers/search.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
@module CoursesRoute
@module SearchRoute
*/

import { z } from 'zod';
Expand Down
1 change: 1 addition & 0 deletions api/src/types/environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ declare global {
GRECAPTCHA_SECRET: string;
PRODUCTION_DOMAIN: string;
ADMIN_EMAILS: string;
ANTEATER_API_KEY?: string;
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion stacks/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export function BackendStack({ stack }: StackContext) {
environment: {
DATABASE_URL: process.env.DATABASE_URL!,
SESSION_SECRET: process.env.SESSION_SECRET!,
PUBLIC_API_URL: process.env.PUBLIC_API_URL!,
// PUBLIC_API_URL: process.env.PUBLIC_API_URL!,
PUBLIC_API_URL: 'https://anteaterapi.com/v2/rest/',
GOOGLE_CLIENT: process.env.GOOGLE_CLIENT!,
GOOGLE_SECRET: process.env.GOOGLE_SECRET!,
GRECAPTCHA_SECRET: process.env.GRECAPTCHA_SECRET!,
Expand Down

0 comments on commit c9dd311

Please sign in to comment.