Build with Nuxt
Create a project (quickstart), open the Connect tab, and copy your .env. Then wire it up:
Database in server routes
Section titled “Database in server routes”npm install postgresimport postgres from 'postgres';export const sql = postgres(process.env.DATABASE_URL!, { ssl: 'require' });export default defineEventHandler(async () => { return await sql`select id, title from posts order by id desc`;});Client plugin with the Supabase-compatible SDK (publishable values via runtimeConfig.public); protect server routes by verifying JWTs against JWKS — details.
import Redis from 'ioredis';export const redis = new Redis(process.env.REDIS_URL!);Session caching and rate limiting patterns: Cache.
Host it on Impulse
Section titled “Host it on Impulse”Nitro’s Node preset on a Cloud VPS; nuxi generate static output on ImpulseDrive static hosting.