A real project structure
The browser starter includes Pages Router files, components, styles, and an API route.
Work with imported components, pages, and API routes in a project workspace. Next.js uses a separate browser Node runtime with its own requirements.
Read the runtime requirements below.
import type { NextApiResponse } from "next";
export default function handler(_req: unknown, res: NextApiResponse) {
res.status(200).json({ message: "Hello from Next.js" });
}The browser starter includes Pages Router files, components, styles, and an API route.
Install dependencies and run the project dev server inside the browser runtime.
Existing App Router projects are preserved; a Pages starter can be opened with a backup.
Use HTTPS or localhost and a supported desktop browser.
Open Studio, select Next.js, and read the runtime readiness message.
Start Node runtime and inspect Terminal output before testing the preview or API route.
The browser Node runtime requires a compatible browser and host configuration. App Router can hit request-context errors in browser runtimes; export and use native Node for full framework compatibility. Commercial WebContainer production use needs an eligible provider license.
Provider’s commercial usage termsLocal drafts stay in this browser’s storage. Export a ZIP or source file to keep a separate copy. Cloud saves need a configured account and are sent to the site’s database.
Running code in this playground does not call an AI provider.
Use test data for experiments. Browser code, source exports, console messages, and debug reports can expose values you put in them.