Skip to content

Commit

Permalink
fix versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Oct 23, 2023
1 parent 1c5fd53 commit dc9c427
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
7 changes: 5 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 7 additions & 13 deletions test/templates/react-rsc/app.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
import { references } from "@vinxi/plugin-references";
import { serverComponents } from "@vinxi/plugin-server-components";
import { serverFunctions } from "@vinxi/plugin-server-functions";
import reactRefresh from "@vitejs/plugin-react";
import { createApp } from "vinxi";

export default createApp({
server: {
plugins: [references.serverPlugin],
virtual: {
[references.serverPlugin]: references.serverPluginModule({
routers: ["server", "rsc"],
}),
},
},
routers: [
{
name: "public",
Expand All @@ -24,19 +17,19 @@ export default createApp({
base: "/_rsc",
handler: "./app/react-server.tsx",
target: "server",
plugins: () => [references.serverComponents(), reactRefresh()],
plugins: () => [serverComponents.server(), reactRefresh()],
},
{
name: "client",
mode: "spa",
handler: "./index.ts",
target: "browser",
plugins: () => [
references.clientRouterPlugin({
serverFunctions.client({
runtime: "@vinxi/react-server-dom/runtime",
}),
reactRefresh(),
references.clientComponents(),
serverComponents.client(),
],
base: "/",
},
Expand All @@ -48,11 +41,12 @@ export default createApp({
handler: "./app/server-action.tsx",
target: "server",
plugins: () => [
references.serverRouterPlugin({
serverFunctions.server({
resolve: {
conditions: ["react-server"],
},
}),
serverComponents.serverActions(),
],
},
],
Expand Down
3 changes: 2 additions & 1 deletion test/templates/react-rsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"dependencies": {
"@picocss/pico": "^1.5.10",
"@vinxi/plugin-references": "0.0.29",
"@vinxi/plugin-server-functions": "0.0.29",
"@vinxi/plugin-server-components": "0.0.29",
"@vinxi/react": "0.0.11",
"@vinxi/react-server-dom": "0.0.3",
"@vitejs/plugin-react": "^4.0.4",
Expand Down

0 comments on commit dc9c427

Please sign in to comment.