Redirect to a random GIF on GIPHY. Supports all request parameters from the GIPHY API Random Endpoint as well as an additional rendition parameter.
You'll need Node.js and Yarn installed in your local development environment. Run yarn inside the repository root to install dependencies before proceeding.
Set the following environment variables in .env and in your production environment:
GIPHY_API_KEY # Get a key from the GIPHY Developer Portal.
GIPHY_TAG # Default: success
GIPHY_RATING # Default: pg
GIPHY_RENDITION # Default: originalDefaults are set for all but the API Key. See the GIPHY API documentation for more info on request parameters.
All variables can be overridden in the URL query string parameters (e.g. append ?tag=cat to the URL to request a random GIF tagged with a cat). A rendition parameter is available to request a specific GIF size.
Runs the development server. Changes will automatically refresh the page.
Builds the app for production.
Starts the production server.
Deploy using Vercel: