Skip to content

Commit

Permalink
Merge branch 'main' into 1512-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid authored Jun 11, 2024
2 parents 2a69216 + d932ebd commit a654a66
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-jars-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/start": patch
---

Omit some keys from Vite server config
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"fast-glob": "^3.3.0",
"graphql": "^16.7.1",
"postcss": "^8.4.38",
"rimraf": "^3.0.2",
"rimraf": "^5.0.7",
"solid-js": "^1.8.17",
"solid-mdx": "^0.0.7",
"solid-start-mdx": "workspace:*",
Expand Down
9 changes: 7 additions & 2 deletions packages/start/config/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ import type { CustomizableConfig } from "vinxi/dist/types/lib/vite-dev";
import { InlineConfig } from "vite";
import type { Options } from "vite-plugin-solid";

// atleast until we sort which server options are good to use
// should probably be maintained by Vinxi
type VinxiViteServerOptions = Omit<
InlineConfig["server"],
"port" | "strictPort" | "host" | "middlewareMode" | "open"
>;

type ViteCustomizableConfig = CustomizableConfig & {
server?: InlineConfig["server"];
server?: VinxiViteServerOptions;
};

type SolidStartInlineConfig = {
Expand Down
Loading

0 comments on commit a654a66

Please sign in to comment.