You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arthur Nester was able to fix that by extending plugin ui but got a new issue Http failure during parsing as I understood it caused by createStaticServer method so i added new middleware and fix issue with white screen but still doesn't work as expected
Describe the solution you'd like
Easily add a subdomain and use basehref /
Describe alternatives you've considered
The solution on Discord suggested was by Arthur Nester:
route is still pointing to admin because internal middleware uses this to apply middleware for that route and if we put / we won't override so we use / in extended plugin for additional middleware with ignored some routes.
I hope it will be helpful, i know that my solution is not good and i am tend to deploy admin as separate service in order to avoid overriding core plugins logic
Additional context
On Northflank I got my domain working and the admin UI goes to /admin but I want to change that to go to the root location.
So the subdomain is linked with server and port 3000.
I did change the following settings:
AdminUiPlugin.init({
route: '/',
port: 3002,
})
and in the angular.json:
"baseHref": "/",
Additionally I also use some custom components so I have an environment variable:
BASE_HREF=/
used in compile-admin-ui.ts
baseHref: process.env.BASE_HREF ?? DEFAULT_BASE_HREF,
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently there is no easy way to use admin.website.com without a lot of workaround.
The problems is due to this line of code:
vendure/packages/admin-ui-plugin/src/plugin.ts
Line 330 in f02fc56
Arthur Nester was able to fix that by extending plugin ui but got a new issue Http failure during parsing as I understood it caused by createStaticServer method so i added new middleware and fix issue with white screen but still doesn't work as expected
Describe the solution you'd like
Easily add a subdomain and use basehref /
Describe alternatives you've considered
The solution on Discord suggested was by Arthur Nester:
route is still pointing to admin because internal middleware uses this to apply middleware for that route and if we put / we won't override so we use / in extended plugin for additional middleware with ignored some routes.
I hope it will be helpful, i know that my solution is not good and i am tend to deploy admin as separate service in order to avoid overriding core plugins logic
Additional context
On Northflank I got my domain working and the admin UI goes to /admin but I want to change that to go to the root location.
So the subdomain is linked with server and port 3000.
I did change the following settings:
and in the angular.json:
"baseHref": "/",
Additionally I also use some custom components so I have an environment variable:
The text was updated successfully, but these errors were encountered: