Question · Vibe coding with Claude Code course · Module 9: Discord clone

Quiz: Where the API key lives

Where do you keep the key to the weather API in Pirate's Cove?

Answer options

  • In .env.local as NEXT_PUBLIC_OPENWEATHER_API_KEY, so that the widget can use it
  • In lib/ports.ts next to the port coordinates
  • In .env.example, so that the whole crew has it after cloning
  • In .env.local as OPENWEATHER_API_KEY, read only in the Route Handler

You can check the correct answer by solving this task in the CodeWorlds game.