chore: update build requirements to Node 20 (#431)

* remove svg-to-dataurl dependency

* chore: update package.json for build command and node version

- Modified the build command to include NODE_OPTIONS for legacy OpenSSL support.
- Updated the Node.js engine requirement to >=20.17.0.
- Added packageManager field for Yarn version.

* chore: update now.json for build environment and Node.js version

- Added NODE_OPTIONS for OpenSSL legacy support in the build environment.
- Specified Node.js engine version to 20.x.

* chore: remove Node.js engine specification from now.json

- Removed the Node.js engine version specification from the configuration file.

* chore: remove now.json configuration file

- Deleted the now.json file, which contained build environment settings and redirects.

---------

Co-authored-by: madflow <madflow@web.de>
Co-authored-by: Ritesh Kumar <ritz078@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-01-28 20:25:27 +05:30
1 parent e129420895
commit ff7557939b
4 files changed
+20 -11

No files matched your search

+11 -1
View File
@@ -4,7 +4,17 @@ import { EditorPanelProps } from "@components/EditorPanel";
import Form from "@components/Form";
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
import { Alert, Badge, Heading, Pane } from "evergreen-ui";
import svgToDataUrl from "svg-to-dataurl";
const svgToDataUrl = (svgStr: string) => {
const encoded = encodeURIComponent(svgStr)
.replace(/'/g, "%27")
.replace(/"/g, "%22");
const header = "data:image/svg+xml,";
const dataUrl = header + encoded;
return dataUrl;
};
interface SvgConverterProps {
name: string;