Skip to content

Commit

Permalink
fix: set Vike extension name
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Feb 14, 2024
1 parent e9828c7 commit 97a7375
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vike-solid/+config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const toggleSsrRelatedConfig: ConfigEffect = ({
};

const config = {
// @ts-ignore Remove this ts-ignore once Vike's new version is released.
name: 'vike-solid',
// https://vike.dev/onRenderHtml
onRenderHtml: "import:vike-solid/renderer/onRenderHtml:onRenderHtml",
// https://vike.dev/onRenderClient
Expand Down Expand Up @@ -60,6 +62,10 @@ const config = {
stream: {
env: { server: true },
},
// Vike already defines the setting 'name', but we redundantly define it here for older Vike versions (otherwise older Vike versions will complain that 'name` is an unknown config).
name: {
env: { config: true }
},
},
} satisfies Config;

Expand Down

0 comments on commit 97a7375

Please sign in to comment.