Hosting for Next.js in Russia - Layero
Where to deploy Next.js so that the site opens for Russian audiences quickly and without a VPN? Layero - Russian hosting for Next.js: auto-detect of the framework, support for App Router and Pages Router, SSR via scale-to-zero with HTML cache on edge, servers in Russia. Deploy with one command
npx layero@latest deploy or from GitHub.
What Layero does with the Next.js project
Layero handles Next.js the way the framework itself expects: static segments on the CDN, SSR routes on the runtime, which wakes up on request and goes to sleep when idle.
Auto-detect Next.js
Layero itself recognizes Next.js by package.json and config - for App Router, Pages Router and next export. There is no need to select any separate presets.
Statics + SSR via scale-to-zero
Static pages and assets are distributed from CDN within Russia. SSR routes are served by a container that wakes up when requested and goes to sleep when idle—the platform does not support an expensive always-on process.
Caching SSR responses
Caching depends on the route and application response headers. Responses containing personal data must not be cached publicly. Response time depends on the application, load and container state.
Mode for AI agents
In Cursor, Claude Code and other agents, just say “backup via layero” - the CLI will start in mode --json, will return a structured result with a ready-made URL and errors in machine-readable form.
Guides: Claude Code, Cursor, Codex.
Next.js features on Layero
Which parts of Next.js run on the platform and in what mode.
| Next.js feature | Layero |
|---|---|
| App Router (Next.js 13+/14/15) | Yes |
| Pages Router | Yes |
Static export (next export) | Yes |
| SSR (server rendering) | Yes - via runtime, scale-to-zero |
| ISR (incremental static regeneration) | Partially |
Image Optimization (next/image) | Yes - via standard loader |
| Custom domain with auto-SSL | Yes - CNAME on cname.layero.app |
| Preview environments for each branch | Yes |
| Environment variables (build + runtime) | Yes - AES-256-GCM, NEXT_PUBLIC_* to client |
How to deploy Next.js to Layero
Three steps - from the project folder to the public URL.
Start deployment
In the Next.js project folder, run npx layero@latest deploy —no need to install anything. Or link the GitHub repository in the panel app.layero.ru: each push to the main branch will be collected and published automatically, and preview environments will be raised in the branches.
Sign in
Log in by email or through Yandex. An account is created automatically when you first log in - no separate registration is needed.
Layero will collect and publish
The platform will detect Next.js, execute next build, will decompose statics onto CDN, raise SSR routes to runtime from scale-to-zero. Environment variables are configured in the panel (values are encrypted with AES-256-GCM); only NEXT_PUBLIC_* - the rest are available only to server components and Route Handlers.
What tasks is Next.js hosting on Layero suitable for?
Perfect fit
- Landing pages and promotional pages - static on Layero servers, instant TTFB
- Corporate websites with .ru domains
- Documentation and blogs on App Router
- Marketing pages and SEO projects with server rendering
- SSR applications (personal accounts, dashboards) - runtime wakes up on request
- E-commerce on App Router - server components, dynamic routes, HTML cache on edge
What's included out of the box
- servers in Russia
- Preview environments for each branch and pull request
- Custom domains via CNAME → cname.layero.app, auto-SSL
- Environment variables with AES-256-GCM encryption
- Sign in by email or with Yandex
- Machine Readable Mode
--jsonfor AI agents
Frequently asked questions about Next.js on Layero
Layero holding SSR Next.js?
Is App Router working?
ISR supported?
revalidatePartial support. Revalidation runs within the SSR runtime. Test on-demand revalidation, tags and background updates before migrating; identical behavior to Vercel is not guaranteed.Does Image Optimization work?
next/image delivers optimized images via SSR-runtime. If you need maximum performance, you can use unoptimized or external loader (for example, images from your storage).How much does Next.js hosting cost for a production load?
How to migrate Next.js from Vercel?
npx layero@latest deploy in the project folder. Environment variables are transferred to the Layero panel (the values are encrypted with AES-256-GCM, only the NEXT_PUBLIC_*), the custom domain is connected via CNAME to cname.layero.app — an SSL certificate is issued automatically.Deploy Next.js to Russian hosting in a minute
There is a free plan. Log in by email or via Yandex and publish your first Next.js project.