In this lecture, you will unpack the “map” of a typical
Next.js template for ChatGPT Apps: where the UI widget lives (
app/page.tsx or
app/widget/page.tsx), where the MCP layer is located (
app/mcp/route.ts), and which configs “glue” the project to the ChatGPT runtime (
next.config.ts,
proxy.ts,
.env.local). We will also discuss why
'use client',
assetPrefix, CORS, and secure storage of
OPENAI_API_KEY matter.