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

Installation
SKILL.md

How to Run Astro SSR and PocketBase on the Same Server

In this article I will show you how to host PocketBase and Astro in SSR mode on the same server. PocketBase does let you render templates on the server but requires Go Templates or pre-building with Static Site Generation (SSG).

This could also be modified to use your web server or framework of choice (Next.jsSvelteKitQwikAngular).

Before getting started make sure you have the latest version of Node and Go installed locally.

Getting started 

In a terminal run the following to create the base project:

mkdir pocketbase_astro_ssr
cd pocketbase_astro_ssr
mkdir server
mkdir www
Related skills
Installs
34
GitHub Stars
39
First Seen
Feb 4, 2026