localhost prefixes in production builds
circus2271 opened this issue Β· comments
pavel commented
π Bug report
Description
When building with Scully, Scully always inserts localhost prefixes in my href links.
Maybe I didn't get how to configure those builds properly...
I use npm run build && npx scully
to get a static version of my site
After builds are finished, my anchor links have 'http://localhost:1864' prefixes:
<a _ngcontent-aod-c4="" routerlink="/party" href="http://localhost:1864/party">party</a>
I expect them to be only in dev builds (via npm run scully:serve
)
π¬ Minimal Reproduction
Steps to reproduce this behaviour:
- clone project:
git clone https://github.com/circus2271/angular-berthold-demo.git - go into project's folder and run
npm run build && npx scully
- you will see some of the console output:
Starting servers for project "demo"
β Started Scully static server on "http://localhost:1668/"
β Started Angular distribution server on "http://localhost:1864/"
- after build is ready, you can go to, let's say, "dist/static/party/index.html" and see that there are locahost prefixes included
π»Your Environment
Angular Version:
14
Scully Version:
2.1.41
Thanks for your attention
pavel commented
I made a fresh build and all worked. Don't remember if I used manual installation, but it worked with angular 15, thanks