Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: add nixpacks info

Andras Bacsai8d571a5eab88
diff --git a/resources/views/livewire/project/application/general.blade.php b/resources/views/livewire/project/application/general.blade.php
index 79948bd6ad..5b324e193c 100644
--- a/resources/views/livewire/project/application/general.blade.php
+++ b/resources/views/livewire/project/application/general.blade.php
@@ -49,14 +49,21 @@
@if ($application->build_pack !== 'dockerimage')
<h3>Build</h3>
@if ($application->could_set_build_commands())
- <div class="flex flex-col gap-2 xl:flex-row">
- <x-forms.input placeholder="pnpm install" id="application.install_command"
- label="Install Command" />
- <x-forms.input placeholder="pnpm build" id="application.build_command" label="Build Command" />
- <x-forms.input placeholder="pnpm start" id="application.start_command" label="Start Command" />
- </div>
+ @if ($application->build_pack === 'nixpacks')
+ <div>Nixpacks will detect your package manager/configurations: <a class="underline" href="https://nixpacks.com/docs/providersnode">Nixpacks documentation</a></div>
+ <div class="text-warning">You probably do not need to modify the commands below.</div>
+ <div class="flex flex-col gap-2 xl:flex-row">
+ <x-forms.input placeholder="If you modify this, you probably need to have a nixpacks.toml" id="application.install_command"
+ label="Install Command" />
+ <x-forms.input placeholder="If you modify this, you probably need to have a nixpacks.toml" id="application.build_command"
+ label="Build Command" />
+ <x-forms.input placeholder="If you modify this, you probably need to have a nixpacks.toml" id="application.start_command"
+ label="Start Command" />
+ </div>
+ @endif
@endif
+
<div class="flex flex-col gap-2 xl:flex-row">
<x-forms.input placeholder="/" id="application.base_directory" label="Base Directory"
helper="Directory to use as root. Useful for monorepos." />