given Scully config:
export const config: ScullyConfig = {
projectRoot: './src',
projectName: 'anime-trending',
distFolder: './dist/anime-trending/browser',
outDir: './dist/static',
routes: {
'/charts/top-anime/:chartDate': {
type: 'json',
headers: {
expectedContentType: 'application/json'
},
chartDate: {
url: 'http://localhost:5001/anitrendz-prod/us-central1/animeTrendingAPI/charts/top-anime/years'
}
}
}
};
and verifying the given url returns an array of strings, running npx scully doesnt render an index.html for each string, instead printing:
✔ Folder "./scully" used for custom plugins
⚠ Deprecation Notice:
======================================================================
From now on, the plugin that is being used to render a route is
able to be changed by the user. You can do this by adding or
enabling the plugin your scully.anime-trending.config.ts
file. For your convenience, we loaded the Puppeteer plugin for you.
To disable this warning enable the plugin of your choice.
for Puppeteer please add:
import '@scullyio/scully-plugin-puppeteer';
to your scully.anime-trending.config.ts file.
When you get this warning while not using scully-plugin-puppeteer
you need to set the defaultRouteRenderer to the name of your plugin.
The defaultRouteRenderer is now set to 'routeRenderer'.
======================================================================
✔ new Angular build files imported
✔ Starting servers for project "anime-trending"
✔ Started Angular distribution server on "http://localhost:1864/"
✔ Started Scully static server on "http://localhost:1668/"
✔ Scully Development Server is up and running
✔ Puppeteer is being launched
⚠ ----------------------------------
⚠ Using stored unhandled routes!.
⚠ To discover new routes in the angular app use "npx scully --scanRoutes"
⚠ ----------------------------------
✔ Successfully added routes created from routePlugins
✔ Route list created in files:
".\src\assets\scully-routes.json",
"anime-trending\dist\static\assets\scully-routes.json",
"anime-trending\dist\anime-trending\browser\assets\scully-routes.json"
✔ Route "/" rendered into ".\dist\static\index.html"
Total time used 6.09 seconds
1 pages have been created
Rendering the pages took NaN seconds
That is NaN pages per second,
or NaN milliseconds for each page.
Pulling in route-data took NaN seconds