Skip to content

nhost/functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b4c57f6 · Jan 16, 2025

History

54 Commits
Jan 16, 2025
Nov 7, 2022
Jun 21, 2022
Jun 25, 2024
Jun 25, 2024
Jan 16, 2025
Jul 6, 2022
Sep 14, 2023
Jan 16, 2025
May 21, 2024
May 22, 2023
Jun 11, 2024
Jun 11, 2024
Sep 14, 2023
Jun 28, 2024
Jul 6, 2022

Repository files navigation

Nhost functions in Docker

Features

  • Hot reload of package.json, lock files, and the functions directory
  • Accepts both JavaScript and TypeScript
  • Create a package.json file if missing
  • Customisable custom package manager (pnpm by default)
  • No need to add the Express dependency anymore

Example

cd example
cp .env.example .env
# Full Nhost
docker-compose up

# Or only functions
docker-compose up functions traefik

Create a new version

Create a GitHub release, with a new semver tag prefixed with v, for instance v0.1.2

Note

I've added a package.json file to make my IDE happy when developing inside server.ts. Just note: The npm packages in package.json is only for development. You need to update the packages in Dockerfile for them to be used in the docker image.