Skip to content

feat(nextjs): gate mobile blocking behind env flag, default off#280

Merged
gianalarcon merged 1 commit into
developfrom
feat/temp-disable-mobile-block
May 25, 2026
Merged

feat(nextjs): gate mobile blocking behind env flag, default off#280
gianalarcon merged 1 commit into
developfrom
feat/temp-disable-mobile-block

Conversation

@Huygon764
Copy link
Copy Markdown
Contributor

Set default viewport to help mobile can use app

Temporarily allow mobile users to access the app instead of redirecting
them to the /mobile screen.

- useMobileDetection: skip detection/redirect unless
  NEXT_PUBLIC_ENABLE_MOBILE_BLOCK="true"
- layout viewport: force desktop width (1440) when blocking is off so
  mobile browsers render the full layout zoomed out; device-width when on
- wire the flag through frontend.Dockerfile and the prod/staging
  frontend workflows; document it in nextjs/.env.example

Default (flag unset/false) disables blocking, so deploys allow mobile
without setting any GitHub var.
@gianalarcon gianalarcon merged commit 28cf967 into develop May 25, 2026
2 checks passed
Huygon764 added a commit that referenced this pull request May 25, 2026
Temporarily allow mobile users to access the app instead of redirecting
them to the /mobile screen.

- useMobileDetection: skip detection/redirect unless
  NEXT_PUBLIC_ENABLE_MOBILE_BLOCK="true"
- layout viewport: force desktop width (1440) when blocking is off so
  mobile browsers render the full layout zoomed out; device-width when on
- wire the flag through frontend.Dockerfile and the prod/staging
  frontend workflows; document it in nextjs/.env.example

Default (flag unset/false) disables blocking, so deploys allow mobile
without setting any GitHub var.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants