Ngx-admin: How to change project root path?

Created on 29 Dec 2016  路  2Comments  路  Source: akveo/ngx-admin

I'm submitting a ...
[ ] bug report
[ ] feature request
[X ] question

I've got stuck by this question all day.
Hope someone can help me figure it out!

I run my ng2-admin server on port 3000, and I used Nginx to forward to it.
But I already got one service run on the root path (eg. https://ng2-admin/), so I try to change the redirection path (eg. https://ng2-admin/xxxx/).

So is there any way that I can change the whole project root path to /xxxx???

Thanks!!!

Most helpful comment

The config is no longer available, how to change it with latest version?

All 2 comments

edit the config/webpack.common.js file:

const METADATA = {
  title: 'ng2-admin - Angular 2 Admin Template',
  description: 'Free Angular 2 and Bootstrap 4 Admin Template',
  baseUrl: '/', 
  isDevServer: helpers.isWebpackDevServer()
};

change baseUrl to /xxxx/

const METADATA = {
  title: 'ng2-admin - Angular 2 Admin Template',
  description: 'Free Angular 2 and Bootstrap 4 Admin Template',
  baseUrl: '/xxxx/',
  isDevServer: helpers.isWebpackDevServer()
};

The config is no longer available, how to change it with latest version?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yanyim picture yanyim  路  3Comments

tal-shahar picture tal-shahar  路  3Comments

nfdavenport picture nfdavenport  路  3Comments

myurAgarwal picture myurAgarwal  路  3Comments

AZm1n picture AZm1n  路  4Comments