npm create astro@latest -- --template framework-preactThis example showcases Astro working with Preact.
Write your Preact components as .jsx or .tsx files in your project.
Note: Before running
npm run build, ensure you have added the SSL certificate in Node.js by running:export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"Additionally, make sure you have authentication set up in Drupal.