
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
@gammastream/scully-plugin-http404
Advanced tools
A Scully plugin for generating a 404.html file at the root level.
This postRenderer
plugin for Scully will create a /404.html
page for the configured /404
route. This is handy for generating custom 404 error pages within your Angular application while maintaining compatibility with the firebase hosting requirements for 404s.
Version 1.0.0 introduces breaking changes in the way the plugin is registered and configured. Please update your configurations
To install this library with npm
run
$ npm install @gammastream/scully-plugin-http404 --save-dev
Create a 404 route in the root router:
RouterModule.forRoot([{
path: 'a',
component: PageComponent
}, {
path: 'b',
component: PageComponent
}, {
path: 'c',
component: PageComponent
}, {
path: '',
component: PageComponent
}, {
path: '404',
component: Http404Component
}, {
path: '**',
component: Http404Component
}])
Add the plugin to the defaultPostRenderers
to execute it on the /404 route:
import { ScullyConfig, setPluginConfig } from '@scullyio/scully';
import { getHttp404Plugin } from '@gammastream/scully-plugin-http404';
const Http404Plugin = getHttp404Plugin();
export const config: ScullyConfig = {
projectRoot: './src',
projectName: 'scully-plugins',
outDir: './dist/static',
defaultPostRenderers: [Http404Plugin],
routes: {
'/products/:productId': {
type: 'json',
productId: {
url: 'http://localhost:4200/assets/products.json',
property: 'id',
}
}
}
};
Build app and run scully like normal.
npm run build
npm run scully
If you have any issues you can raise them here or contact me at: GammaStream
FAQs
A Scully plugin for generating a 404.html file at the root level.
We found that @gammastream/scully-plugin-http404 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.