mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
7aa5d16231
Co-authored-by: Sebastian "Sebbie" Silbermann <silbermann.sebastian@gmail.com>
Example app using Google Maps Embed
This example shows how to embed a Google Maps Embed using @next/third-parties.
Deploy your own
How to use
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-google-maps-embed with-google-maps-embed-app
yarn create next-app --example with-google-maps-embed with-google-maps-embed-app
pnpm create next-app --example with-google-maps-embed with-google-maps-embed-app
Next, copy the .env.local.example file in this directory to .env.local (which will be ignored by Git):
cp .env.local.example .env.local
Set the NEXT_PUBLIC_GOOGLE_API_KEY variable in .env.local to match your Google Maps API Key.
Deploy it to the cloud with Vercel (Documentation).