-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
# nixpacks.toml | ||
|
||
# Specify the version of Node.js you want to use | ||
[NODE] | ||
version = "20" # replace with your desired Node.js version | ||
|
||
# Phases definition | ||
[phases.setup] | ||
commands = [ | ||
"npm install -g pnpm", # Install pnpm globally | ||
] | ||
providers = ["node"] | ||
|
||
[phases.install] | ||
commands = [ | ||
"pnpm install", # Install project dependencies using pnpm | ||
] | ||
|
||
[phases.build] | ||
commands = [ | ||
"pnpm run build", # Build the application using pnpm | ||
] | ||
|
||
# Optionally specify environment variables | ||
[env] | ||
NIXPACKS_NODE_VERSION = "20" # replace with your desired Node.js version | ||
cmds = ["npm install -g corepack", "corepack enable", "corepack prepare pnpm@9.1.0 --activate", "pnpm install"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
providers = ["node"] | ||
|
||
[phases.install] | ||
cmds = ["npm install -g corepack", "corepack enable", "corepack prepare pnpm@9.1.0 --activate", "pnpm install"] |