Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Metronic Vue 8.1.7, change base url


Hi,

I'd like to play with this version and check possibility to migrate from 8.1.4
This version is a little bit different.
I manage to run it
1. disabling "Typescript and JavaScript Features" - in vsCode
2. disable Vetur - in vsCode
3. install Volar - in vsCode
4. install TypeScript Vue Plugin Volar

application starts at localhost:port/metronic8/vue/demo5

when I change "base" in vite.config.ts some small issues occurs:
1. on login screen error with background GET http://media/misc/auth-bg.png net::ERR_NAME_NOT_RESOLVED

2. after login on each site e.g. index.js:168 GET http://media/icons/duotune/general/gen024.svg net::ERR_NAME_NOT_RESOLVED

Can you please give an advise how to change base_url without anything, just http://localhost:port/


regards Krystian


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


Hi Krystian,

Updating a base property in vite.config.ts is right way how to change app url.

This missing error appears because path isn't set correctly. To fix this errors you can just change path from /media/misc/auth-bg.png to media/misc/auth-bg.png in file src/layouts/AuthLayout.vue.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



very good,I also meet this problem,Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(