From 1815cd5b55e78e15eb8471af876719301085413a Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 25 May 2025 15:40:02 +0200 Subject: [PATCH] chore: add nixpacks.toml configuration for Hugo static site deployment --- nixpacks.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nixpacks.toml diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..61db53c --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,18 @@ +# nixpacks.toml + +# This section ensures that Hugo is available in the build environment. +# Nixpacks will use Nix to provide the 'hugo' package. +[phases.setup] +nix_pkgs = ["hugo"] + +# This section defines the command(s) to build your Hugo site. +# Using "--verbose" can give more detailed output from Hugo during the build if needed. +# Using "--minify" is good practice to reduce file sizes. +[phases.build] +cmds = ["hugo --verbose --minify"] + +# This section tells Nixpacks where your built static site will be located. +# Coolify will then use this 'public' directory to serve your website. +[start] +public_dir = "public" +# No 'cmd' is needed here for static sites, as Coolify handles the serving.