You can customize Parklife's behavior using Parkfile.application.config.
Base URL
To ensure Rails *_url helpers point to the correct host (useful for feeds or social tags), set the base configuration. This can also be overridden at build-time via the CLI.
Parkfile.application.config.base = 'https://foo.example.com'
CLI override:
$ bundle exec parklife build --base https://benpickles.github.io/parklife
Output Directory
Set the directory where the static site will be saved. The directory is cleared before each build. Defaults to 'build'.
Parkfile.application.config.build_dir = 'my/build/dir'
Nested Index Files
By default, Parklife uses nested index.html files (e.g., /path/index.html) to ensure link compatibility. To use flat .html files instead (e.g., /path.html), set nested_index to false. This is useful for services like Netlify or GitHub Pages with 'Pretty URLs' enabled.
Parkfile.application.config.nested_index = false
Defining the Rack App
If you are not using the Rails-specific configuration, you must manually define the Rack application.
Parkfile.application.config.app = MyRackApp