From 2e9487d61f9ba73f8f230da7a81b1ebb69511ede Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 14 Mar 2026 17:22:05 +0100 Subject: [PATCH] chore: add nixpacks config --- netlify.toml | 4 ++-- nixpacks.toml | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 nixpacks.toml diff --git a/netlify.toml b/netlify.toml index 849fe5a..f54e91a 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,9 +1,9 @@ [build] publish = "dist" -command = "npm run build" +command = "pnpm run build" [build.environment] -NODE_VERSION = "16" +NODE_VERSION = "22" [[headers]] for = "/.well-known/*" diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..99bf11c --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,8 @@ +[phases.setup] +nixPkgs = ['nodejs_22', 'pnpm'] + +[phases.install] +cmds = ['pnpm install'] + +[phases.build] +cmds = ['pnpm run build']