scullyio / scully

The Static Site Generator for Angular apps

Home Page:https://scully.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

localhost prefixes in production builds

circus2271 opened this issue Β· comments

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:

  1. clone project:
    git clone https://github.com/circus2271/angular-berthold-demo.git
  2. go into project's folder and run npm run build && npx scully
  3. 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/"
  1. 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

commented

I made a fresh build and all worked. Don't remember if I used manual installation, but it worked with angular 15, thanks