nksaraf / vinxi

The Full Stack JavaScript SDK
https://vinxi.vercel.app
MIT License
1.89k stars 75 forks source link

Missing types for `https` object in `server` section. #307

Closed elite174 closed 3 months ago

elite174 commented 3 months ago

At the moment it's possible to pass https object (listhen object for https) to server section in config like:

export default defineConfig({
  server: {
    /** @ts-ignore vinxi doesn't have types for this, bug */
    https: {
      cert: "./certs/cert.pem",
      key: "./certs/key.pem",
    },
    preset: "bun",
  },
  vite() {
    return viteConfig;
  },
});

But there's no clue that you can pass it.

Brendonovich commented 3 months ago

This is already fixed on main, just waiting on a new release. https://github.com/nksaraf/vinxi/blob/e9f6a235c67bca6a904929e36ef857e80fb136cd/packages/vinxi/lib/app.js#L15

elite174 commented 3 months ago

Fixed in 0.13.2