opnform-host-nginx/client/middleware
Chirag Chhatrala b2b04d7f2a
Self hosted domain redirect (#756)
* Integration pages from Notion

* Self hosted domain redirect

* Refactor root-redirect middleware and update 404 page layout

- Simplified the `root-redirect.js` middleware by removing the specific route checks, allowing for a more general redirect based on the `self_hosted` feature flag.
- Updated the 404 error page in `[...all].vue` by removing the unnecessary `NuxtLayout` wrapper and replacing `NuxtLink` with a custom `UButton` for navigation, enhancing the overall layout and user experience.

These changes aim to streamline the redirect logic and improve the presentation of the 404 error page.

* Refactor feature flag handling and update middleware

- Updated the condition in `Navbar.vue` to correctly evaluate the feature flags for rendering the AI form builder link.
- Removed the `feature-flags.global.js` middleware as it was no longer needed, streamlining the middleware structure.
- Enhanced the `root-redirect.js` middleware to utilize `h3`'s `sendRedirect` for server-side redirection, improving the redirect logic.
- Modified the `ai-form-builder.vue` page to include the new `root-redirect` middleware, ensuring proper redirection based on feature flags.

These changes aim to improve the handling of feature flags and redirection logic, enhancing the overall application flow.

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-05-20 14:51:44 +02:00
..
01.check-auth.global.js Enhance JWT Token Management and Authentication Flow (#720) 2025-03-10 17:32:17 +08:00
admin.js 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
api-redirect.global.js 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
auth.js 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
custom-domain.global.js Add client linting to GitHub Actions workflow 2025-01-27 18:24:27 +01:00
guest.js Docker compose setup (#513) 2024-08-05 12:06:20 +02:00
moderator.js 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00
root-redirect.js Self hosted domain redirect (#756) 2025-05-20 14:51:44 +02:00
self-hosted-credentials.js Refactor Docker configuration and development setup 2025-01-29 17:19:36 +01:00
self-hosted.js Form editor v2 (#579) 2024-09-23 20:02:38 +02:00
subscribed.js 0351d front end linting (#377) 2024-04-15 19:39:03 +02:00