Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
astro-https-image-endpoint
Advanced tools
As an alternative image endpoint in Astro local development
Astro's image optimization service will not work when TLS enabled on localhost, This issue has been on the back burner for a while, but there is no consistent official solution, and the current issue is low priority (and probably won't be fixed for some time).
It's a simple tool to help you take a break from TLS + Astro Image.
npm i astro-https-image-endpoint -D
astro.config.mjs
:import { defineConfig } from 'astro/config'
import imageEndpoint from 'astro-https-image-endpoint'
export default defineConfig({
image: {
// Pass "import.meta.env.DEV" to ensure it is only enabled on development.
endpoint: imageEndpoint(import.meta.env.DEV),
},
})
If your site really does have 1k+ images on one page that load slowly due to disk I/O during development, then that's not relevant to this plugin and you may need a CDN or other cloud service.
This has nothing to do with this plugin. But if you haven't started for Astro to enable TLS for local development, here's the reference configuration:
import { defineConfig } from 'astro/config'
import mkcert from 'vite-plugin-mkcert'
import imageEndpoint from 'astro-https-image-endpoint'
export default defineConfig({
server: {
host: 'my-domain.com',
port: 3000,
},
image: {
endpoint: imageEndpoint(import.meta.env.DEV),
},
vite: {
plugins: [mkcert({ hosts: ['my-domain.com'] })],
},
})
FAQs
As an alternative image endpoint in Astro local development
The npm package astro-https-image-endpoint receives a total of 18 weekly downloads. As such, astro-https-image-endpoint popularity was classified as not popular.
We found that astro-https-image-endpoint 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.