how-to-run-astro-ssr-and-pocketbase-on-the-same-server

Host Astro SSR and PocketBase on one server with Go and a reverse proxy.

58|6|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/rodydavis/skills --skill how-to-run-astro-ssr-and-pocketbase-on-the-same-server
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: how-to-run-astro-ssr-and-pocketbase-on-the-same-server
Source: https://github.com/rodydavis/skills/tree/main/skills/astro-ssr-pocketbase-single-server
Command: npx skills add https://github.com/rodydavis/skills --skill how-to-run-astro-ssr-and-pocketbase-on-the-same-server

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @astrojs/node, pocketbase, go, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of efficiently hosting both a dynamic Astro Server-Side Rendering (SSR) application and a PocketBase backend on a single server instance, optimizing resource utilization and simplifying deployment.

Core Features & Use Cases

  • Unified Hosting: Deploy Astro SSR and PocketBase on the same server.
  • Reverse Proxy Integration: Seamlessly delegate requests to Astro for dynamic content while PocketBase handles its own API and Admin UI.
  • Go Integration: Extends PocketBase using Go for custom server logic and routing.
  • Use Case: Develop and deploy a full-stack web application where Astro handles the frontend rendering and user interactions, and PocketBase serves as the backend database and authentication service, all from a single server.

Quick Start

Follow the guide to set up the server and client directories, configure PocketBase with Go, and build the Astro SSR application.

Frequently Asked Questions about how-to-run-astro-ssr-and-pocketbase-on-the-same-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I host Astro SSR and PocketBase on the same server?

Astro SSR and PocketBase share a single server through Go integration and a reverse proxy. Astro handles dynamic frontend rendering while PocketBase manages the backend database and authentication API within one unified environment.

Can I use a reverse proxy to route traffic between Astro SSR and PocketBase?

Yes, a reverse proxy seamlessly delegates requests to Astro for dynamic content while PocketBase handles its own API and Admin UI. This ensures both services operate efficiently on a single server instance.

Do I need Go to run PocketBase alongside an Astro SSR application?

Yes, Go is required to extend PocketBase with custom server logic and routing. This integration enables PocketBase to run alongside your Astro SSR application on the same server.

What is the best way to deploy a full-stack Astro and PocketBase application?

Deploy a full-stack Astro and PocketBase application by unifying them on a single server. Astro handles frontend rendering and user interactions, while PocketBase serves as the backend database and authentication service, optimizing resource utilization.

What dependencies are required to set up Astro SSR with PocketBase?

Setting up Astro SSR with PocketBase requires Node.js, Go, PocketBase, and Astro. Specifically, the @astrojs/node adapter is used to configure the Astro server-side rendering application within this unified environment.