To configure server mods using a packwiz modpack, set the
PACKWIZ_URL environment variable to the location of your
pack.toml modpack definition:
packwiz modpack definitions are processed before other mod definitions (
MODS, etc.) to allow for additional processing/overrides you may want to perform (in case of mods not available via Modrinth/CurseForge, or you do not maintain the pack).
packwiz is pre-configured to only download server mods. If client-side mods are downloaded and cause issues, check your pack.toml configuration, and make sure any client-only mods are not set to
"both", but rather
"client" for the side configuration item.