nixpacks
nixpacks copied to clipboard
Make staticfile provider better
The staticfile provider should be better in these ways:
- If a build command can be found, run that build command and attempt to start with Staticfile provider if it matches the criteria
- The
Staticfile
should allow for more configuration (TBD, but there is definitely more we can support)
What do you mean by "If a build command can be found".
If you mean run another providers setup/install/build commands, then that will be solved via the multiple providers implementation.
Oh yeah, completely forgot about that.
Also, what are the additional configuration options? Ideally a GitHub issue is something that can be picked up and worked on by anyone, but "more configuration" without concrete details or examples is very open-ended and often leads to issues being open forever as there is no clear "this is complete" point.
Nginx configuration mainly, as I have seen quite a few users request that.
possibly allow for servers other than nginx to be used? for example the npm serve
package
Now that multiple providers are supported, we should potentially look into this. Run the build command, then if no start command can be found but the staticfile provider is matched, use it.