Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing types for https object in server section. #307

Closed
elite174 opened this issue Jun 7, 2024 · 2 comments
Closed

Missing types for https object in server section. #307

elite174 opened this issue Jun 7, 2024 · 2 comments

Comments

@elite174
Copy link
Contributor

elite174 commented Jun 7, 2024

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.

@elite174 elite174 changed the title Add types for https object in server section. Missing types for https object in server section. Jun 7, 2024
@Brendonovich
Copy link
Contributor

This is already fixed on main, just waiting on a new release.

server?: Omit<import('nitropack').NitroConfig, 'handlers' | 'devHandlers' | 'publicAssets' | 'scanDirs' | 'appConfigFiles' | 'imports' | 'virtual'> & { https?: import('@vinxi/listhen').HTTPSOptions | boolean };

@elite174
Copy link
Contributor Author

Fixed in 0.13.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants