Amin NAIRI
Amin NAIRI
DDeno
Created by Amin NAIRI on 2/9/2025 in #help
Deno TLS
I would like to start both a HTTP and a HTTPS server (for a reverse proxy) and be able to serve dynamically several certificates for virtual hosts that enable TLS support (via a cert + key), there are there methods in the Deno object which are startTls, listenTls, and connectTls, but I'm not sure how can I start a server that listens for HTTP requests, and connects using Tls to the client, I must admit I know less of the TLS than the HTTP protocol, any example on how can I do that?
1 replies
DDeno
Created by Amin NAIRI on 12/8/2024 in #help
Run JSR library from NPX
I have built a package that uses Deno internals at https://jsr.io/@aminnairi/tsconfig@0.2.0 but I'm having issues run this package from NPX as per the documentation. Using the npx jsr run @aminnairi/tsconfig command does not work, same thing when used with npx jsr run jsr:@aminnairi/tsconfig. Am I missing something? The command deno run -A jsr:@aminnairi/tsconfig works though.
9 replies
DDeno
Created by Amin NAIRI on 12/6/2024 in #help
Importing from Deno Workspace to NPM workspace
I'm trying to import some shared Zod schemas from the backend (Deno project) to the frontend (React project created using deno run -A npm:create-vite) but for some reasons, the LSP finds the file correctly, but it is typed as any rather than the type of the Zod schema. I tried creating a shared folder and importing the schemas from the shared folder to the backend and it works perfectly, but importing it from the frontend always gives me any. Any insights on this? I tried both on helix and vscode, same outcome.
2 replies