Skip to content

chore: use api proxy for tv maze api #1863

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

Merged
merged 1 commit into from
Jan 4, 2023
Merged

chore: use api proxy for tv maze api #1863

merged 1 commit into from
Jan 4, 2023

Conversation

orinokai
Copy link
Contributor

@orinokai orinokai commented Jan 4, 2023

Summary

We occasionally run into rate limiting problems with the example API used for demos and testing. This is a particular issue for an upcoming PR that adds more demo pages that need to statically fetch data at build time.

This PR replaces all api.tvmaze.com references with our new API proxy at tvproxy.netlify.app

Test plan

All tests on demo sites should run as before.

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

https://github.com/netlify/tvproxy

@orinokai orinokai added the type: chore work needed to keep the product and development running smoothly label Jan 4, 2023
@orinokai orinokai self-assigned this Jan 4, 2023
@orinokai orinokai requested a review from a team January 4, 2023 14:52
@netlify
Copy link

netlify bot commented Jan 4, 2023

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit 608f0c9
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/63b592acb58fc5000839bfc5
😎 Deploy Preview https://deploy-preview-1863--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 4, 2023

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit 608f0c9
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/63b592ac5650a00009e58b82
😎 Deploy Preview https://deploy-preview-1863--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 4, 2023

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 608f0c9
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/63b592ac63e2040008c766b1
😎 Deploy Preview https://deploy-preview-1863--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 4, 2023

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit 608f0c9
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/63b592ac7b8574000969eb8e
😎 Deploy Preview https://deploy-preview-1863--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 4, 2023

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit 608f0c9
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/63b592acf93c0c0009b4d493
😎 Deploy Preview https://deploy-preview-1863--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 4, 2023

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 608f0c9
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/63b592ac0d8ea00009771dd9
😎 Deploy Preview https://deploy-preview-1863--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 4, 2023

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit 608f0c9
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/63b592ac5109fc0008c62cde
😎 Deploy Preview https://deploy-preview-1863--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 4, 2023

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit 608f0c9
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/63b592ac8cb18d000b6c0e00
😎 Deploy Preview https://deploy-preview-1863--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jan 4, 2023
@netlify
Copy link

netlify bot commented Jan 4, 2023

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit 608f0c9
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/63b592ac87b31d00093679cc
😎 Deploy Preview https://deploy-preview-1863--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@ascorbic
Copy link
Contributor

ascorbic commented Jan 4, 2023

The CodeQL warnings are legit. You need to ensure the props passed by the user are numeric or an attacker could make the demo site request arbitrary URLs. Wrapping them in Number() would do the job.

@orinokai orinokai changed the title feat: use api proxy for tv maze api chore: use api proxy for tv maze api Jan 4, 2023
@orinokai orinokai added automerge and removed type: feature code contributing to the implementation of a feature and/or user facing functionality labels Jan 4, 2023
@kodiakhq kodiakhq bot merged commit ad83ea9 into main Jan 4, 2023
@kodiakhq kodiakhq bot deleted the rs/tv-maze-proxy branch January 4, 2023 16:04
@orinokai orinokai removed the automerge label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants