Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Sep 22, 2023
1 parent 0f14555 commit 505dd51
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ The surface layer we are intending to tackle:

```bash
npm install vinxi
touch app.config.js
echo `import { createApp } from 'vinxi'; export default createApp({});` > app.config.js
npx vinxi dev
```

### React SSR

```ts
Expand All @@ -45,25 +41,20 @@ export default createApp({
name: "public",
mode: "static",
dir: "./public",
base: "/",
},
{
name: "client",
mode: "build",
handler: "./app/client.tsx",
build: {
target: "browser",
plugins: () => [reactRefresh()],
},
target: "browser",
plugins: () => [reactRefresh()],
base: "/_build",
},
{
name: "ssr",
mode: "handler",
handler: "./app/server.tsx",
build: {
target: "server",
},
target: "server",
},
],
});
Expand All @@ -81,26 +72,21 @@ export default createApp({
name: "public",
mode: "static",
dir: "./public",
base: "/",
},
{
name: "client",
mode: "build",
handler: "./app/client.tsx",
build: {
target: "browser",
plugins: () => [solid({ ssr: true })],
},
target: "browser",
plugins: () => [solid({ ssr: true })],
base: "/_build",
},
{
name: "ssr",
mode: "handler",
handler: "./app/server.tsx",
build: {
target: "server",
plugins: () => [solid({ ssr: true })],
},
target: "server",
plugins: () => [solid({ ssr: true })],
},
],
});
Expand Down

0 comments on commit 505dd51

Please sign in to comment.