
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
jelenjs-ssg
Advanced tools
Static Site Generation for JelenJS framework.
getStaticProps
and getStaticPaths
import { generateStaticSite } from 'jelenjs-ssg';
const config = {
pagesDir: './pages',
outputDir: './dist',
baseUrl: 'https://mysite.com',
defaultTitle: 'My Site',
optimization: {
minifyHTML: true,
generateSitemap: true,
generateRobots: true
}
};
const result = await generateStaticSite(config);
pages/
├── index.tsx # /
├── about.tsx # /about
├── blog/
│ ├── index.tsx # /blog
│ └── [slug].tsx # /blog/:slug (dynamic)
// Static props
export async function getStaticProps() {
return {
props: { data: await fetchData() }
};
}
// Dynamic paths
export async function getStaticPaths() {
const items = await fetchItems();
return items.map(item => ({ params: { id: item.id } }));
}
interface SSGConfig {
pagesDir: string; // Pages directory
outputDir: string; // Output directory
baseUrl?: string; // Site base URL
defaultTitle?: string; // Default page title
meta?: MetaTag[]; // Global meta tags
styles?: string[]; // CSS files
clientScripts?: string[]; // JS files
optimization?: {
minifyHTML?: boolean;
generateSitemap?: boolean;
generateRobots?: boolean;
};
}
MIT
FAQs
Static Site Generation for JelenJS framework
The npm package jelenjs-ssg receives a total of 0 weekly downloads. As such, jelenjs-ssg popularity was classified as not popular.
We found that jelenjs-ssg demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.