A public channel for the Angular community to come talk about Scully and JAMStack strategies in Angular.
If I set the healess flag directly in the puppeteerLaunchOptions like this:
puppeteerLaunchOptions: {
executablePath: '/usr/bin/chromium-browser',
headless: false,
...
It throws the same error... what makes sense since you said that the --showBrowser flag actually does the same thing. I guess it really is the Docker or the WSL2 that's causing the error.
scully
the ts files inside the plugins folder don't get compiled thus when scully executes it doesn't see the modules
./scully
folder to compile the plugins you did put in there.
--showRotues
cmd line option, the tabs stay open way longer. Also you can reduce the max-render-threads in the config, if you set it to 1, then its using only 1 tab
./scully
folder, and you didn't change the tsconfig in there, it should compile just fine.
./scully
folder, and have it automatically compiled tho. it's not there by default (and never was)npm run scully:serve
to set which locale it should serve?
Does anyone have used Scully on a cloud instance (Linux)? When running "npx scully --scanRoutes" on a CD server in AWS, the "Rendering Route" process is extremely slow, and based on the speed, it will take hours before we can finish pre-rendering 300 routes.
The speed was fine when we run on local. Can this be improved with Chromium settings? If yes, which settings should be used? Thanks in advance
/src/assets/scully-routes.json
file and skip the other steps? We're using Angular Prerender with a simple routesfile and it worked great until we ran into long path issues. If there is a tutorial on it or another way I could give scully a list of complete paths I would be in your debt.
Hi all, when we manually look at the dist/static/ generated by Scully, index.htmls for pages with route parameters look correctly pre-renderede. However, when we deploy dist/static to prod, go to the same page w/ route params and click on "view source" in the browser, the source is the default root index.html rather than the correct one.
This seem to be an nginx issue but I'm not sure which part to change. Appreciate if anyone can point me to the right direction / settings in nginx.
Our current nginx.config (partial)
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
gzip_vary on;
gzip_min_length 10240;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml application/javascript;
gzip_disable "MSIE [1-6]\.";
server {
listen 80;
ssl on;
ssl_certificate /var/security/certificate.crt;
ssl_certificate_key /var/security/private.key;
# server_name ${IP}:8080;
server_name XXXX.com www.XXXX.com;
#charset koi8-r;
#access_log logs/host.access.log main;
root /usr/share/nginx/html; // <--- this is mounted to ./dist/satic/
index index.html index.htm;
location / {
try_files $uri $uri/ /index.html;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
include servers/*;
}