Configuration
Platformatic Remix is configured with a configuration file. It supports the use of environment variables as setting values with configuration placeholders.
It supports all the settings supported by Platformatic Vite, plus the following one:
remix.outputDirectory: The subdirectory where production build is stored at when usingwattpm buildorplt build. The default isbuild.
note
Platformatic Remix uses this property instead of application.outputDirectory (which is ignored).
runtime
The runtime property allows you to embed runtime configuration directly in your application's configuration file. This is useful when you want to configure runtime-level settings specific to this application without needing a separate runtime configuration file.
See the runtime configuration documentation for details on each property.
Available properties
The following runtime properties can be configured at the application level:
preload: Files to load before the application code.workers: Worker configuration for this application.logger: Logger configuration.server: Server configuration (hostname, port, HTTPS, HTTP/2).watch: Enable/disable file watching.health: Health check configuration.telemetry: OpenTelemetry configuration.undici: Undici HTTP client configuration.httpCache: HTTP caching configuration.metrics: Prometheus metrics configuration.gracefulShutdown: Shutdown timeout settings.startTimeout: Application start timeout.restartOnError: Restart behavior on errors.compileCache: Node.js compile cache settings.