Skip to content

Preview deployments incorrectly inherit www-redirect #3819

@jrm402

Description

@jrm402

To Reproduce

  1. Create an application. Enable redirect-to-www.
  2. Enable preview deployments.
  3. Create a new PR to trigger a preview deployment.
  4. Once deployed, the preview URL will force a redirect to ``www.`.

Current vs. Expected behavior

Because preview URLs are wildcard subdomains, I would expect the www redirect middleware to be left off. It is incorrectly inherited from the main deployment settings.

Provide environment information

Operating System:
  OS: Debian 13
  Arch: arm64
Dokploy version: v0.27.1
VPS Provider: Hostinger
What applications/services are you trying to deploy? Nextjs

Which area(s) are affected? (Select all that apply)

Traefik

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

Maybe, need help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions