Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added S3 deploy and cloudfront cache invalidation to CI #18

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"lint_fix": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0 --fix",
"preview": "vite preview"
"preview": "vite preview",
"upload": "aws s3 sync dist/ s3://flightsdeploybucket --delete",
"invalidate": "aws cloudfront create-invalidation --distribution-id E1TASZURWXXX8L --paths '/*'"
},
"dependencies": {
"@auth0/auth0-react": "^2.2.4",
Expand Down
3 changes: 3 additions & 0 deletions src/flights/recomendations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ function Recomendation() {
<p className="recommendation-text">
Airline: {selectedFlight.flights[0].airline}
</p>
<p className="recommendation-text">
Airplane: {selectedFlight.flights[0].airplane}
</p>
<p className="recommendation-text">
Departure: {selectedFlight.flights[0].departure_airport.name}
</p>
Expand Down
Loading