Skip to content

Commit 6a96167

Browse files
committed
update
1 parent 48c2118 commit 6a96167

File tree

7 files changed

+26
-51
lines changed

7 files changed

+26
-51
lines changed

examples/h3/vite.config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@ import { defineConfig } from "vite";
22
import { nitro } from "nitro/vite";
33

44
export default defineConfig({
5-
plugins: [
6-
nitro({
7-
services: { ssr: { entry: "./server.ts" } },
8-
}),
9-
],
5+
plugins: [nitro()],
106
});

examples/hono/vite.config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@ import { defineConfig } from "vite";
22
import { nitro } from "nitro/vite";
33

44
export default defineConfig({
5-
plugins: [
6-
nitro({
7-
services: { ssr: { entry: "./server.ts" } },
8-
}),
9-
],
5+
plugins: [nitro()],
106
});

examples/node-compat/vite.config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@ import { defineConfig } from "vite";
22
import { nitro } from "nitro/vite";
33

44
export default defineConfig({
5-
plugins: [
6-
nitro({
7-
services: { ssr: { entry: "./server.ts" } },
8-
}),
9-
],
5+
plugins: [nitro()],
106
});

examples/react-ssr/vite.config.mjs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1+
import react from "@vitejs/plugin-react";
12
import { defineConfig } from "vite";
23
import { nitro } from "nitro/vite";
34

4-
import react from "@vitejs/plugin-react";
5-
65
export default defineConfig({
7-
plugins: [
8-
react(),
9-
nitro({
10-
services: { ssr: { entry: "./src/server.tsx" } },
11-
}),
12-
],
6+
plugins: [react(), nitro()],
137
environments: {
148
client: {
159
build: { rollupOptions: { input: "./src/client.tsx" } },
10+
consumer: "client",
1611
},
1712
},
1813
});

examples/vue-ssr/vite.config.mjs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1+
import vue from "@vitejs/plugin-vue";
12
import { defineConfig } from "vite";
23
import { nitro } from "nitro/vite";
34

4-
import vue from "@vitejs/plugin-vue";
5-
65
export default defineConfig({
7-
plugins: [
8-
vue(),
9-
nitro({
10-
services: { ssr: { entry: "./src/server.ts" } },
11-
}),
12-
],
6+
plugins: [vue(), nitro()],
137
environments: {
14-
client: {
15-
build: { rollupOptions: { input: "./services/vue/client.ts" } },
16-
},
8+
client: { build: { rollupOptions: { input: "./src/client.ts" } } },
179
},
1810
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint:fix": "automd && prettier -w ."
1010
},
1111
"resolutions": {
12-
"nitro": "npm:[email protected]20250711-090755.54759a69",
12+
"nitro": "npm:[email protected]20250717-112322.9fb4f4f7",
1313
"vite": "^7.0.4"
1414
},
1515
"devDependencies": {

pnpm-lock.yaml

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)