Astro
Deploy Astro sites on Hostinger in static or SSR mode, including Node adapter setup, hPanel build settings, and per-page hybrid rendering options.
Content-first framework that ships zero JavaScript by default. Hostinger supports both static and server modes.
app_type: astro
package.json
{
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview"
}
}Static
Default Astro mode — pre-renders every page at build time.
hPanel settings:
Application type
astro
Build script
build
Output directory
dist
Entry file
—
Use when your content is known at build time (blogs, docs, marketing sites).
Server (SSR)
Runs a Node server that renders pages on each request. Required for dynamic routes, API endpoints, or server-only environment access.
Install the Node adapter:
Configure astro.config.mjs:
hPanel settings:
Application type
astro
Build script
build
Output directory
dist
Entry file
dist/server/entry.mjs
Hybrid rendering
Astro supports per-page opt-in/opt-out of pre-rendering:
Deploy as server mode — Astro handles each page individually based on the prerender flag.
Notes
Node 20 or newer for Astro 4+.
For static deployments, no entry file is needed.
Bind to
process.env.PORTif using a custom server adapter.
Last updated: July 21, 2026
Last updated
Was this helpful?