add: add env masking extension for .env files

Introduce a new extension for CodeMirror that masks sensitive values in .env files. This ensures that sensitive information like API keys or passwords is not displayed in plain text within the editor. The extension dynamically applies masking to values in lines matching the KEY=VALUE format, improving security during development.
This commit is contained in:
KevIsDev
2025-03-27 18:52:13 +00:00
parent 95dcd0261a
commit 4b0eaf25ce
3 changed files with 87 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
import { json, type ActionFunctionArgs } from '@remix-run/node';
import { json, type ActionFunctionArgs } from '@remix-run/cloudflare';
export async function action({ request }: ActionFunctionArgs) {
try {