Skip to content
Snippets Groups Projects

Fix styles on error page when Vite is disabled

What does this MR do and why?

Fix styles on error page when Vite is disabled.

This is a follow up from Load app styles on error pages (!177825 - merged), which fixed styles when Vite is enabled, which is currently not the case in production.

It turns out the Vite check is unnecessary.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screenshot_2025-02-03_at_1.00.28_pm Screenshot_2025-02-03_at_1.05.02_pm

How to set up and validate locally

1.Disabled Vite on you local environment but running the following set of commands from your terminal:

gdk stop vite rails-web
gdk config set vite.enabled false
gdk config set webpack.enabled true
gdk reconfigure
gdk restart webpack rails-web

Link to docs: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/configuration.md#vite-settings 2. Visit a page that doesn't exist, such as http://127.0.0.1:3000/notapage

Related to #509301 (closed)

Edited by Florie Guibert

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading