From 505dd51fd130dc6747de2ff5259ef0cf86f62b6f Mon Sep 17 00:00:00 2001 From: Nikhil Saraf Date: Fri, 22 Sep 2023 17:33:15 +0530 Subject: [PATCH] fix readme --- README.md | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 6dd95839..a9a92b5f 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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", }, ], }); @@ -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 })], }, ], });