Skip to content

Commit

Permalink
Merge pull request #8 from icssc/dang-fix-github-actions
Browse files Browse the repository at this point in the history
testing env
  • Loading branch information
NwinNwin authored May 16, 2024
2 parents 6bf2fb1 + c0bccff commit e231755
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions stacks/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ export function BackendStack({ stack }: StackContext) {
defaults: {
function: {
bind: [bus],
environment: {
EMAIL: process.env.EMAIL,
REFRESH_TOKEN: process.env.REFRESH_TOKEN,
CLIENT_SECRET: process.env.CLIENT_SECRET,
CLIENT_ID: process.env.CLIENT_ID,
REDIRECT_URI: process.env.REDIRECT_URI,

NODE_ENV: process.env.NODE_ENV,

AWS_USER: process.env.AWS_USER,
AWS_PASSWORD: process.env.AWS_PASSWORD,
AWS_HOST: process.env.AWS_HOST,
AWS_PORT: process.env.AWS_PORT,
AWS_DB_NAME: process.env.AWS_DB_NAME,
},
},
},
routes: { $default: "packages/functions/src/server.default" },
Expand All @@ -21,4 +36,5 @@ export function BackendStack({ stack }: StackContext) {
});

process.env.API_URL = api.url; // Set the API URL to be used by the frontend stack
// localhost:3001
}
2 changes: 1 addition & 1 deletion stacks/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function FrontendStack({ stack }: StackContext) {
buildCommand: "pnpm run build",
customDomain: "zotnfound.com",
environment: {
VITE_REACT_APP_AWS_BACKEND_URL: apiUrl,
VITE_REACT_APP_AWS_BACKEND_URL: apiUrl, //https://805cgohzr0.execute-api.us-east-1.amazonaws.com/
VITE_REACT_APP_API_KEY: process.env.VITE_REACT_APP_API_KEY!,
VITE_REACT_APP_AUTH_DOMAIN: process.env.VITE_REACT_APP_AUTH_DOMAIN!,
VITE_REACT_APP_PROJECT_ID: process.env.VITE_REACT_APP_PROJECT_ID!,
Expand Down

0 comments on commit e231755

Please sign in to comment.