diff --git a/stacks/backend.ts b/stacks/backend.ts index 65991d3..7e5a15a 100644 --- a/stacks/backend.ts +++ b/stacks/backend.ts @@ -12,17 +12,19 @@ export function BackendStack({ stack }: StackContext) { function: { bind: [bus], environment: { - EMAIL: process.env.EMAIL as string, - REFRESH_TOKEN: process.env.REFRESH_TOKEN as string, - CLIENT_SECRET: process.env.CLIENT_SECRET as string, - CLIENT_ID: process.env.CLIENT_ID as string, - REDIRECT_URI: process.env.REDIRECT_URI as string, - NODE_ENV: process.env.NODE_ENV as string, - AWS_USER: process.env.AWS_USER as string, - AWS_PASSWORD: process.env.AWS_PASSWORD as string, - AWS_HOST: process.env.AWS_HOST as string, - AWS_PORT: process.env.AWS_PORT as string, - AWS_DB_NAME: process.env.AWS_DB_NAME as string, + 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, }, }, }, diff --git a/stacks/frontend.ts b/stacks/frontend.ts index e15ae4c..889559a 100644 --- a/stacks/frontend.ts +++ b/stacks/frontend.ts @@ -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!,