diff --git a/examples/demo-vps-0.4/package.json b/examples/demo-vps-0.4/package.json
index 819dbe7..d28b580 100644
--- a/examples/demo-vps-0.4/package.json
+++ b/examples/demo-vps-0.4/package.json
@@ -12,7 +12,7 @@
"test:02": "vitest run --dir tests/02-additional-endpoints --config tests/02-additional-endpoints/vitest.config.ts",
"test:03": "vitest run --dir tests/03-prerender --config tests/03-prerender/vitest.config.ts",
"test:04": "vitest run --dir tests/04-isr --config tests/04-isr/vitest.config.ts",
- "test:05": "vite build && vitest run --dir tests/05-vite-plugin-ssr --config tests/05-vite-plugin-ssr/vitest.config.ts"
+ "test:05": "vite build && vitest run --dir tests/05-vike --config tests/05-vike/vitest.config.ts"
},
"license": "MIT",
"devDependencies": {
@@ -37,7 +37,7 @@
"react-dom": "^18.2.0",
"typescript": "^5.2.2",
"vite": "^4.4.9",
- "vite-plugin-ssr": "^0.4.141",
+ "vike": "^0.4.142",
"vite-plugin-vercel": "workspace:*"
},
"version": null
diff --git a/examples/demo-vps-0.4/pages/function/index.page.route.ts b/examples/demo-vps-0.4/pages/function/index.page.route.ts
index 1b14e03..193c795 100644
--- a/examples/demo-vps-0.4/pages/function/index.page.route.ts
+++ b/examples/demo-vps-0.4/pages/function/index.page.route.ts
@@ -1,4 +1,4 @@
-import { PageContextBuiltInServer } from 'vite-plugin-ssr/types';
+import { PageContextBuiltInServer } from 'vike/types';
export default (pageContext: PageContextBuiltInServer) => {
if (!pageContext.urlOriginal.startsWith('/function/')) return false;
diff --git a/examples/demo-vps-0.4/pages/named/index.page.server.ts b/examples/demo-vps-0.4/pages/named/index.page.server.ts
index 6d2b221..df4ecc8 100644
--- a/examples/demo-vps-0.4/pages/named/index.page.server.ts
+++ b/examples/demo-vps-0.4/pages/named/index.page.server.ts
@@ -1,4 +1,4 @@
-import { PageContextBuiltInServer } from 'vite-plugin-ssr/types';
+import { PageContextBuiltInServer } from 'vike/types';
export function onBeforeRender(pageContext: PageContextBuiltInServer) {
return {
diff --git a/examples/demo-vps-0.4/renderer/_default.page.client.tsx b/examples/demo-vps-0.4/renderer/_default.page.client.tsx
index 2dbe822..96b91a9 100644
--- a/examples/demo-vps-0.4/renderer/_default.page.client.tsx
+++ b/examples/demo-vps-0.4/renderer/_default.page.client.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import { createRoot, hydrateRoot, Root } from 'react-dom/client';
-import type { PageContextBuiltInClientWithClientRouting as PageContextBuiltInClient } from 'vite-plugin-ssr/types';
+import type { PageContextBuiltInClientWithClientRouting as PageContextBuiltInClient } from 'vike/types';
import { PageWrapper } from './PageWrapper';
import type { PageContext } from './types';
diff --git a/examples/demo-vps-0.4/renderer/_default.page.server.tsx b/examples/demo-vps-0.4/renderer/_default.page.server.tsx
index 62d77f4..0a7ec7a 100644
--- a/examples/demo-vps-0.4/renderer/_default.page.server.tsx
+++ b/examples/demo-vps-0.4/renderer/_default.page.server.tsx
@@ -1,14 +1,14 @@
import ReactDOMServer from 'react-dom/server';
import React from 'react';
import { PageWrapper } from './PageWrapper';
-import { escapeInject, dangerouslySkipEscape } from 'vite-plugin-ssr/server';
+import { escapeInject, dangerouslySkipEscape } from 'vike/server';
import logoUrl from './logo.svg';
import type { PageContext } from './types';
-import type { PageContextBuiltInServer } from 'vite-plugin-ssr/types';
+import type { PageContextBuiltInServer } from 'vike/types';
export { render };
-// See https://vite-plugin-ssr.com/data-fetching
+// See https://vike.dev/data-fetching
export const passToClient = ['pageProps', 'urlPathname', 'documentProps'];
async function render(pageContext: PageContextBuiltInServer & PageContext) {
@@ -19,12 +19,11 @@ async function render(pageContext: PageContextBuiltInServer & PageContext) {
,
);
- // See https://vite-plugin-ssr.com/html-head
+ // See https://vike.dev/html-head
const { documentProps } = pageContext;
const title = (documentProps && documentProps.title) || 'Vite SSR app';
const desc =
- (documentProps && documentProps.description) ||
- 'App using Vite + vite-plugin-ssr';
+ (documentProps && documentProps.description) || 'App using Vite + vike';
const injected = escapeInject`
diff --git a/examples/demo-vps-0.4/renderer/usePageContext.tsx b/examples/demo-vps-0.4/renderer/usePageContext.tsx
index d8b11ef..7c88f80 100644
--- a/examples/demo-vps-0.4/renderer/usePageContext.tsx
+++ b/examples/demo-vps-0.4/renderer/usePageContext.tsx
@@ -1,5 +1,5 @@
// `usePageContext` allows us to access `pageContext` in any React component.
-// More infos: https://vite-plugin-ssr.com/pageContext-anywhere
+// More infos: https://vike.dev/pageContext-anywhere
import React, { useContext } from 'react';
import type { PageContext } from './types';
diff --git a/examples/demo-vps-0.4/server/index.ts b/examples/demo-vps-0.4/server/index.ts
index c76c304..6ba7bbb 100644
--- a/examples/demo-vps-0.4/server/index.ts
+++ b/examples/demo-vps-0.4/server/index.ts
@@ -1,7 +1,7 @@
///
import express from 'express';
-import { renderPage } from 'vite-plugin-ssr/server';
+import { renderPage } from 'vike/server';
import * as vite from 'vite';
import { fileURLToPath } from 'url';
import path from 'path';
diff --git a/examples/demo-vps-0.4/tests/05-vite-plugin-ssr/config.test.ts b/examples/demo-vps-0.4/tests/05-vike/config.test.ts
similarity index 100%
rename from examples/demo-vps-0.4/tests/05-vite-plugin-ssr/config.test.ts
rename to examples/demo-vps-0.4/tests/05-vike/config.test.ts
diff --git a/examples/demo-vps-0.4/tests/05-vite-plugin-ssr/fs.test.ts b/examples/demo-vps-0.4/tests/05-vike/fs.test.ts
similarity index 95%
rename from examples/demo-vps-0.4/tests/05-vite-plugin-ssr/fs.test.ts
rename to examples/demo-vps-0.4/tests/05-vike/fs.test.ts
index d4bd6e2..c1ff7fc 100644
--- a/examples/demo-vps-0.4/tests/05-vite-plugin-ssr/fs.test.ts
+++ b/examples/demo-vps-0.4/tests/05-vike/fs.test.ts
@@ -3,7 +3,7 @@ import glob from 'fast-glob';
import { describe, expect, it } from 'vitest';
describe('fs', function () {
- const buildManifest = require('../../dist/client/manifest.json');
+ const buildManifest = require('../../dist/assets.json');
const generatedFiles = Array.from(
new Set(
@@ -23,8 +23,7 @@ describe('fs', function () {
'/functions/api/post.func/.vc-config.json',
'/functions/edge.func/index.js',
'/functions/edge.func/.vc-config.json',
- '/static/vite-plugin-ssr.json',
- '/static/manifest.json',
+ '/static/vike.json',
// ISR + Static pages
'/functions/ssr_.func/index.js',
'/functions/ssr_.func/.vc-config.json',
diff --git a/examples/demo-vps-0.4/tests/05-vite-plugin-ssr/prerender.test.ts b/examples/demo-vps-0.4/tests/05-vike/prerender.test.ts
similarity index 100%
rename from examples/demo-vps-0.4/tests/05-vite-plugin-ssr/prerender.test.ts
rename to examples/demo-vps-0.4/tests/05-vike/prerender.test.ts
diff --git a/examples/demo-vps-0.4/tests/05-vite-plugin-ssr/utils.ts b/examples/demo-vps-0.4/tests/05-vike/utils.ts
similarity index 100%
rename from examples/demo-vps-0.4/tests/05-vite-plugin-ssr/utils.ts
rename to examples/demo-vps-0.4/tests/05-vike/utils.ts
diff --git a/examples/demo-vps-0.4/tests/05-vite-plugin-ssr/vc-config.test.ts b/examples/demo-vps-0.4/tests/05-vike/vc-config.test.ts
similarity index 100%
rename from examples/demo-vps-0.4/tests/05-vite-plugin-ssr/vc-config.test.ts
rename to examples/demo-vps-0.4/tests/05-vike/vc-config.test.ts
diff --git a/examples/demo-vps-0.4/tests/05-vite-plugin-ssr/vite.config._test_.js b/examples/demo-vps-0.4/tests/05-vike/vite.config._test_.js
similarity index 92%
rename from examples/demo-vps-0.4/tests/05-vite-plugin-ssr/vite.config._test_.js
rename to examples/demo-vps-0.4/tests/05-vike/vite.config._test_.js
index c64240f..98997a9 100644
--- a/examples/demo-vps-0.4/tests/05-vite-plugin-ssr/vite.config._test_.js
+++ b/examples/demo-vps-0.4/tests/05-vike/vite.config._test_.js
@@ -1,5 +1,5 @@
import react from '@vitejs/plugin-react';
-import ssr from 'vite-plugin-ssr/plugin';
+import ssr from 'vike/plugin';
import vercel from 'vite-plugin-vercel';
export default {
diff --git a/examples/demo-vps-0.4/tests/05-vite-plugin-ssr/vitest.config.ts b/examples/demo-vps-0.4/tests/05-vike/vitest.config.ts
similarity index 100%
rename from examples/demo-vps-0.4/tests/05-vite-plugin-ssr/vitest.config.ts
rename to examples/demo-vps-0.4/tests/05-vike/vitest.config.ts
diff --git a/examples/demo-vps-0.4/vite.config.js b/examples/demo-vps-0.4/vite.config.js
index d41067d..506175b 100644
--- a/examples/demo-vps-0.4/vite.config.js
+++ b/examples/demo-vps-0.4/vite.config.js
@@ -1,7 +1,7 @@
///
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
-import ssr from 'vite-plugin-ssr/plugin';
+import ssr from 'vike/plugin';
import vercel from 'vite-plugin-vercel';
export default defineConfig(async () => {
diff --git a/examples/demo/package.json b/examples/demo/package.json
index ec54666..600a2d4 100644
--- a/examples/demo/package.json
+++ b/examples/demo/package.json
@@ -11,7 +11,7 @@
"test:02": "vitest run --dir tests/02-additional-endpoints --config tests/02-additional-endpoints/vitest.config.ts",
"test:03": "vitest run --dir tests/03-prerender --config tests/03-prerender/vitest.config.ts",
"test:04": "vitest run --dir tests/04-isr --config tests/04-isr/vitest.config.ts",
- "test:05": "vite build && vitest run --dir tests/05-vite-plugin-ssr --config tests/05-vite-plugin-ssr/vitest.config.ts"
+ "test:05": "vite build && vitest run --dir tests/05-vike --config tests/05-vike/vitest.config.ts"
},
"dependencies": {
"@mdx-js/mdx": "^2.3.0",
@@ -31,7 +31,7 @@
"react-dom": "^18.2.0",
"typescript": "^5.2.2",
"vite": "^4.4.9",
- "vite-plugin-ssr": "^0.4.141",
+ "vike": "^0.4.142",
"vite-plugin-vercel": "workspace:*"
},
"type": "module",
diff --git a/examples/demo/pages/catch-all/+config.h.ts b/examples/demo/pages/catch-all/+config.h.ts
index 32b7300..8a22e03 100644
--- a/examples/demo/pages/catch-all/+config.h.ts
+++ b/examples/demo/pages/catch-all/+config.h.ts
@@ -1,4 +1,4 @@
-import { Config } from 'vite-plugin-ssr/types';
+import { Config } from 'vike/types';
export default {
isr: { expiration: 15 },
diff --git a/examples/demo/pages/catch-all/+onBeforeRender.ts b/examples/demo/pages/catch-all/+onBeforeRender.ts
index ee2afc9..f31c47a 100644
--- a/examples/demo/pages/catch-all/+onBeforeRender.ts
+++ b/examples/demo/pages/catch-all/+onBeforeRender.ts
@@ -1,6 +1,6 @@
-import { PageContextBuiltInServer } from 'vite-plugin-ssr/types';
+import { PageContextBuiltInServer } from 'vike/types';
-// https://vite-plugin-ssr.com/onBeforeRender
+// https://vike.dev/onBeforeRender
export default function onBeforeRender() {
return {
pageContext: {
diff --git a/examples/demo/pages/dynamic/+onBeforeRender.ts b/examples/demo/pages/dynamic/+onBeforeRender.ts
index ee2afc9..f31c47a 100644
--- a/examples/demo/pages/dynamic/+onBeforeRender.ts
+++ b/examples/demo/pages/dynamic/+onBeforeRender.ts
@@ -1,6 +1,6 @@
-import { PageContextBuiltInServer } from 'vite-plugin-ssr/types';
+import { PageContextBuiltInServer } from 'vike/types';
-// https://vite-plugin-ssr.com/onBeforeRender
+// https://vike.dev/onBeforeRender
export default function onBeforeRender() {
return {
pageContext: {
diff --git a/examples/demo/pages/function/+config.h.ts b/examples/demo/pages/function/+config.h.ts
index 3170b87..831a19f 100644
--- a/examples/demo/pages/function/+config.h.ts
+++ b/examples/demo/pages/function/+config.h.ts
@@ -1,4 +1,4 @@
-import { Config } from 'vite-plugin-ssr/types';
+import { Config } from 'vike/types';
export default {
// Should warn when building because it's incompatible with route function
diff --git a/examples/demo/pages/function/+onBeforeRender.ts b/examples/demo/pages/function/+onBeforeRender.ts
index ee2afc9..f31c47a 100644
--- a/examples/demo/pages/function/+onBeforeRender.ts
+++ b/examples/demo/pages/function/+onBeforeRender.ts
@@ -1,6 +1,6 @@
-import { PageContextBuiltInServer } from 'vite-plugin-ssr/types';
+import { PageContextBuiltInServer } from 'vike/types';
-// https://vite-plugin-ssr.com/onBeforeRender
+// https://vike.dev/onBeforeRender
export default function onBeforeRender() {
return {
pageContext: {
diff --git a/examples/demo/pages/function/+route.ts b/examples/demo/pages/function/+route.ts
index 6cf63a5..4f38425 100644
--- a/examples/demo/pages/function/+route.ts
+++ b/examples/demo/pages/function/+route.ts
@@ -1,4 +1,4 @@
-import { PageContextBuiltInServer } from 'vite-plugin-ssr/types';
+import { PageContextBuiltInServer } from 'vike/types';
export default function (pageContext: PageContextBuiltInServer) {
if (!pageContext.urlPathname.startsWith('/function/')) return false;
diff --git a/examples/demo/pages/isr/+config.h.ts b/examples/demo/pages/isr/+config.h.ts
index 32b7300..8a22e03 100644
--- a/examples/demo/pages/isr/+config.h.ts
+++ b/examples/demo/pages/isr/+config.h.ts
@@ -1,4 +1,4 @@
-import { Config } from 'vite-plugin-ssr/types';
+import { Config } from 'vike/types';
export default {
isr: { expiration: 15 },
diff --git a/examples/demo/pages/isr/+onBeforeRender.ts b/examples/demo/pages/isr/+onBeforeRender.ts
index 1363692..05ebf21 100644
--- a/examples/demo/pages/isr/+onBeforeRender.ts
+++ b/examples/demo/pages/isr/+onBeforeRender.ts
@@ -1,4 +1,4 @@
-// https://vite-plugin-ssr.com/onBeforeRender
+// https://vike.dev/onBeforeRender
export default function onBeforeRender() {
return {
pageContext: {
diff --git a/examples/demo/pages/named/+config.h.ts b/examples/demo/pages/named/+config.h.ts
index e03bef3..3176521 100644
--- a/examples/demo/pages/named/+config.h.ts
+++ b/examples/demo/pages/named/+config.h.ts
@@ -1,4 +1,4 @@
-import { Config } from 'vite-plugin-ssr/types';
+import { Config } from 'vike/types';
export default {
isr: true,
diff --git a/examples/demo/pages/named/+onBeforeRender.ts b/examples/demo/pages/named/+onBeforeRender.ts
index 7841846..ced6158 100644
--- a/examples/demo/pages/named/+onBeforeRender.ts
+++ b/examples/demo/pages/named/+onBeforeRender.ts
@@ -1,6 +1,6 @@
-import { PageContextBuiltInServer } from 'vite-plugin-ssr/types';
+import { PageContextBuiltInServer } from 'vike/types';
-// https://vite-plugin-ssr.com/onBeforeRender
+// https://vike.dev/onBeforeRender
export default function onBeforeRender(pageContext: PageContextBuiltInServer) {
return {
pageContext: {
diff --git a/examples/demo/pages/static/+onBeforeRender.ts b/examples/demo/pages/static/+onBeforeRender.ts
index 1363692..05ebf21 100644
--- a/examples/demo/pages/static/+onBeforeRender.ts
+++ b/examples/demo/pages/static/+onBeforeRender.ts
@@ -1,4 +1,4 @@
-// https://vite-plugin-ssr.com/onBeforeRender
+// https://vike.dev/onBeforeRender
export default function onBeforeRender() {
return {
pageContext: {
diff --git a/examples/demo/renderer/+config.h.ts b/examples/demo/renderer/+config.h.ts
index 0d2da8e..5d0635a 100644
--- a/examples/demo/renderer/+config.h.ts
+++ b/examples/demo/renderer/+config.h.ts
@@ -1,12 +1,12 @@
-import type { Config } from 'vite-plugin-ssr/types';
+import type { Config } from 'vike/types';
import config from '@vite-plugin-vercel/vike/config';
-// https://vite-plugin-ssr.com/config
+// https://vike.dev/config
export default {
passToClient: ['pageProps', 'title', 'someAsyncProps'],
clientRouting: true,
hydrationCanBeAborted: true,
- // https://vite-plugin-ssr.com/meta
+ // https://vike.dev/meta
meta: {
// Create new config 'title'
title: {
diff --git a/examples/demo/renderer/+onRenderClient.tsx b/examples/demo/renderer/+onRenderClient.tsx
index c363428..6c77e5e 100644
--- a/examples/demo/renderer/+onRenderClient.tsx
+++ b/examples/demo/renderer/+onRenderClient.tsx
@@ -1,4 +1,4 @@
-// https://vite-plugin-ssr.com/onRenderClient
+// https://vike.dev/onRenderClient
export default onRenderClient;
import './css/index.css';
diff --git a/examples/demo/renderer/+onRenderHtml.tsx b/examples/demo/renderer/+onRenderHtml.tsx
index 0c2d533..4d47cbf 100644
--- a/examples/demo/renderer/+onRenderHtml.tsx
+++ b/examples/demo/renderer/+onRenderHtml.tsx
@@ -1,9 +1,9 @@
-// https://vite-plugin-ssr.com/onRenderHtml
+// https://vike.dev/onRenderHtml
export default onRenderHtml;
import ReactDOMServer from 'react-dom/server';
import React from 'react';
-import { escapeInject } from 'vite-plugin-ssr/server';
+import { escapeInject } from 'vike/server';
import { PageShell } from './PageShell';
import { getPageTitle } from './getPageTitle';
import type { PageContextServer } from './types';
@@ -31,7 +31,7 @@ async function onRenderHtml(pageContext: PageContextServer) {
return {
documentHtml,
- // See https://vite-plugin-ssr.com/stream#initial-data-after-stream-end
+ // See https://vike.dev/stream#initial-data-after-stream-end
pageContext: async () => {
return {
someAsyncProps: 42,
diff --git a/examples/demo/renderer/types.ts b/examples/demo/renderer/types.ts
index e4ce33e..e32a424 100644
--- a/examples/demo/renderer/types.ts
+++ b/examples/demo/renderer/types.ts
@@ -6,13 +6,13 @@ export type { PageProps };
import type {
PageContextBuiltInServer,
//*
- // When using Client Routing https://vite-plugin-ssr.com/clientRouting
+ // When using Client Routing https://vike.dev/clientRouting
PageContextBuiltInClientWithClientRouting as PageContextBuiltInClient,
/*/
// When using Server Routing
PageContextBuiltInClientWithServerRouting as PageContextBuiltInClient
//*/
-} from 'vite-plugin-ssr/types';
+} from 'vike/types';
type Page = (pageProps: PageProps) => React.ReactElement;
type PageProps = Record;
diff --git a/examples/demo/tests/05-vite-plugin-ssr/config.test.ts b/examples/demo/tests/05-vike/config.test.ts
similarity index 100%
rename from examples/demo/tests/05-vite-plugin-ssr/config.test.ts
rename to examples/demo/tests/05-vike/config.test.ts
diff --git a/examples/demo/tests/05-vite-plugin-ssr/fs.test.ts b/examples/demo/tests/05-vike/fs.test.ts
similarity index 96%
rename from examples/demo/tests/05-vite-plugin-ssr/fs.test.ts
rename to examples/demo/tests/05-vike/fs.test.ts
index b984774..039b48d 100644
--- a/examples/demo/tests/05-vite-plugin-ssr/fs.test.ts
+++ b/examples/demo/tests/05-vike/fs.test.ts
@@ -3,7 +3,7 @@ import glob from 'fast-glob';
import { describe, expect, it } from 'vitest';
describe('fs', function () {
- const buildManifest = require('../../dist/client/manifest.json');
+ const buildManifest = require('../../dist/assets.json');
const generatedFiles = Array.from(
new Set(
@@ -28,8 +28,7 @@ describe('fs', function () {
new RegExp('/functions/og.func/.*.ttf'),
'/functions/og.func/resvg.wasm',
'/functions/og.func/yoga.wasm',
- '/static/vite-plugin-ssr.json',
- '/static/manifest.json',
+ '/static/vike.json',
// ISR + Static pages
'/functions/ssr_.func/index.js',
'/functions/ssr_.func/.vc-config.json',
diff --git a/examples/demo/tests/05-vite-plugin-ssr/prerender.test.ts b/examples/demo/tests/05-vike/prerender.test.ts
similarity index 100%
rename from examples/demo/tests/05-vite-plugin-ssr/prerender.test.ts
rename to examples/demo/tests/05-vike/prerender.test.ts
diff --git a/examples/demo/tests/05-vite-plugin-ssr/utils.ts b/examples/demo/tests/05-vike/utils.ts
similarity index 100%
rename from examples/demo/tests/05-vite-plugin-ssr/utils.ts
rename to examples/demo/tests/05-vike/utils.ts
diff --git a/examples/demo/tests/05-vite-plugin-ssr/vc-config.test.ts b/examples/demo/tests/05-vike/vc-config.test.ts
similarity index 100%
rename from examples/demo/tests/05-vite-plugin-ssr/vc-config.test.ts
rename to examples/demo/tests/05-vike/vc-config.test.ts
diff --git a/examples/demo/tests/05-vite-plugin-ssr/vite.config._test_.js b/examples/demo/tests/05-vike/vite.config._test_.js
similarity index 92%
rename from examples/demo/tests/05-vite-plugin-ssr/vite.config._test_.js
rename to examples/demo/tests/05-vike/vite.config._test_.js
index c64240f..98997a9 100644
--- a/examples/demo/tests/05-vite-plugin-ssr/vite.config._test_.js
+++ b/examples/demo/tests/05-vike/vite.config._test_.js
@@ -1,5 +1,5 @@
import react from '@vitejs/plugin-react';
-import ssr from 'vite-plugin-ssr/plugin';
+import ssr from 'vike/plugin';
import vercel from 'vite-plugin-vercel';
export default {
diff --git a/examples/demo/tests/05-vite-plugin-ssr/vitest.config.ts b/examples/demo/tests/05-vike/vitest.config.ts
similarity index 100%
rename from examples/demo/tests/05-vite-plugin-ssr/vitest.config.ts
rename to examples/demo/tests/05-vike/vitest.config.ts
diff --git a/examples/demo/vite.config.ts b/examples/demo/vite.config.ts
index 976dccc..3727be9 100644
--- a/examples/demo/vite.config.ts
+++ b/examples/demo/vite.config.ts
@@ -1,5 +1,5 @@
import react from '@vitejs/plugin-react-swc';
-import ssr from 'vite-plugin-ssr/plugin';
+import ssr from 'vike/plugin';
import vercel from 'vite-plugin-vercel';
import { UserConfig } from 'vite';
@@ -28,7 +28,7 @@ export default {
},
],
},
- // We manually add a list of dependencies to be pre-bundled, in order to avoid a page reload at dev start which breaks vite-plugin-ssr's CI
+ // We manually add a list of dependencies to be pre-bundled, in order to avoid a page reload at dev start which breaks vike's CI
// (The 'react/jsx-runtime' entry is not needed in Vite 3 anymore.)
optimizeDeps: { include: ['cross-fetch', 'react/jsx-runtime'] },
} as UserConfig;
diff --git a/packages/vercel/CHANGELOG.md b/packages/vercel/CHANGELOG.md
index 394ee18..1227afc 100644
--- a/packages/vercel/CHANGELOG.md
+++ b/packages/vercel/CHANGELOG.md
@@ -11,7 +11,7 @@
### Patch Changes
-- Add support for vite-plugin-ssr V1 design
+- Add support for vike V1 design
- Updated dependencies
- @vite-plugin-vercel/vike@0.3.3
@@ -44,7 +44,7 @@
### Patch Changes
-- fix use case without vite-plugin-ssr
+- fix use case without vike
## 0.2.0
@@ -96,7 +96,7 @@
### Patch Changes
-- Create a dedicated package for vite-plugin-ssr integration
+- Create a dedicated package for vike integration
## 0.1.0
diff --git a/packages/vercel/README.md b/packages/vercel/README.md
index b70f5e1..723b71c 100644
--- a/packages/vercel/README.md
+++ b/packages/vercel/README.md
@@ -13,7 +13,7 @@ Its purpose is to help you bundle your application in `.vercel` folder as suppor
- `.[jt]s` files under the `/api` folder of your project are automatically bundled as Serverless functions under `.vercel/output/functions/api/*.func`
- see [`additionalEndpoints` config](/packages/vercel/src/types.ts#L62)
- [x] [ISR/Prerender functions support](https://vercel.com/docs/build-output-api/v3/primitives#prerender-functions)
- - see [`isr` config](/packages/vercel/src/types.ts#L89). Also see implementation of [vite-plugin-ssr](/packages/vike-integration/vite-plugin-ssr.ts) for example
+ - see [`isr` config](/packages/vercel/src/types.ts#L89). Also see implementation of [vike](/packages/vike-integration/vike.ts) for example
- [x] [Edge functions support](https://vercel.com/docs/build-output-api/v3/primitives#edge-functions)
- [ ] [Images optimization support](https://vercel.com/docs/build-output-api/v3/configuration#images)
- [ ] [Preview mode support](https://vercel.com/docs/build-output-api/v3/features#preview-mode)
@@ -37,9 +37,9 @@ export default defineConfig({
});
```
-## Usage with vite-plugin-ssr
+## Usage with vike
-[vite-plugin-ssr](https://vite-plugin-ssr.com/) is supported through [@vite-plugin-vercel/vike](/packages/vike-integration/README.md) plugin.
+[vike](https://vike.dev/) is supported through [@vite-plugin-vercel/vike](/packages/vike-integration/README.md) plugin.
You only need to install `@vite-plugin-vercel/vike`, the Vite config stays the same as above.
@@ -47,16 +47,16 @@ You only need to install `@vite-plugin-vercel/vike`, the Vite config stays the s
> `@vite-plugin-vercel/vike` supersedes the old `@magne4000/vite-plugin-vercel-ssr` package.
> As such, you should remove `@magne4000/vite-plugin-vercel-ssr` from your package.json and vite config file.
-### vite-plugin-ssr V1 design
+### vike V1 design
-`vite-plugin-vercel` fully supports [vite-plugin-ssr V1 design](https://vite-plugin-ssr.com/migration/v1-design),
-and thus you can leverage [config files](https://vite-plugin-ssr.com/config) to customize ISR configuration:
+`vite-plugin-vercel` fully supports [vike V1 design](https://vike.dev/migration/v1-design),
+and thus you can leverage [config files](https://vike.dev/config) to customize ISR configuration:
```ts
// /pages/product/+config.h.ts
import Page from './Page';
-import type { Config } from 'vite-plugin-ssr/types';
+import type { Config } from 'vike/types';
// Customize ISR config for this page
export default {
@@ -64,13 +64,13 @@ export default {
} satisfies Config;
```
-You will also need to extend the [renderer config](https://vite-plugin-ssr.com/config#renderer) so that `vite-plugin-ssr` is aware of the new parameter:
+You will also need to extend the [renderer config](https://vike.dev/config#renderer) so that `vike` is aware of the new parameter:
```ts
// /renderer/+config.h.ts
import config from '@vite-plugin-vercel/vike/config';
-import type { Config } from 'vite-plugin-ssr/types';
+import type { Config } from 'vike/types';
export default {
extends: config,
@@ -105,7 +105,7 @@ export default defineConfig({
* Defaults to `false`, which disables prerendering.
*/
prerender(resolvedConfig) {
- // Check `/packages/vite-plugin-ssr/vite-plugin-ssr.ts` `prerender` for an example
+ // Check `/packages/vike/vike.ts` `prerender` for an example
},
/**
* See https://vercel.com/docs/projects/project-configuration#rewrites
@@ -160,7 +160,7 @@ export default defineConfig({
*
* Can be an object or a function returning an object (or a Promise of an object).
*
- * Check `/packages/vite-plugin-ssr/vite-plugin-ssr.ts` `vitePluginVercelVpsIsrPlugin` for advanced usage.
+ * Check `/packages/vike/vike.ts` `vitePluginVercelVpsIsrPlugin` for advanced usage.
*/
isr: {
// `symlink: 'ssr_'` means that a function is available under `.vercel/output/functions/ssr_.func`
diff --git a/packages/vercel/package.json b/packages/vercel/package.json
index 434a511..1fd1fa2 100644
--- a/packages/vercel/package.json
+++ b/packages/vercel/package.json
@@ -29,13 +29,13 @@
"peerDependencies": {
"@vite-plugin-vercel/vike": "workspace:*",
"vite": "^4.2.0",
- "vite-plugin-ssr": "*"
+ "vike": "*"
},
"peerDependenciesMeta": {
"@vite-plugin-vercel/vike": {
"optional": true
},
- "vite-plugin-ssr": {
+ "vike": {
"optional": true
}
},
@@ -48,7 +48,7 @@
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"vite": "^4.4.9",
- "vite-plugin-ssr": "^0.4.141"
+ "vike": "^0.4.142"
},
"dependencies": {
"@brillout/libassert": "^0.5.8",
diff --git a/packages/vercel/src/index.ts b/packages/vercel/src/index.ts
index 365367f..7b6e052 100644
--- a/packages/vercel/src/index.ts
+++ b/packages/vercel/src/index.ts
@@ -29,17 +29,17 @@ function vercelPlugin(): Plugin {
// step 1: Clean .vercel/ouput dir
await cleanOutputDirectory(resolvedConfig);
- // vite-plugin-ssr triggers a second build with --ssr
+ // vike triggers a second build with --ssr
if (vikeFound) {
return;
}
}
- // step 2: Server side built by vite-plugin-ssr
- // step 2.1: Execute vite-plugin-ssr prerender
+ // step 2: Server side built by vike
+ // step 2.1: Execute vike prerender
const overrides = await execPrerender(resolvedConfig);
- // step 3: Wait for vite-plugin-ssr second build step with `ssr` flag
+ // step 3: Wait for vike second build step with `ssr` flag
// step 3.1: Compute overrides for static HTML files
const userOverrides = await computeStaticHtmlOverrides(resolvedConfig);
@@ -114,19 +114,29 @@ async function getStaticHtmlFiles(src: string) {
/**
* Auto import `@vite-plugin-vercel/vike` if it is part of dependencies.
- * Ensures that `vite-plugin-ssr/plugin` is also present to ensure predictable behavior
+ * Ensures that `vike/plugin` is also present to ensure predictable behavior
*/
async function tryImportVpvv() {
try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
- await import('vite-plugin-ssr/plugin');
+ await import('vike/plugin');
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const vpvv = await import('@vite-plugin-vercel/vike');
return vpvv.default();
} catch (e) {
- return null;
+ try {
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
+ await import('vite-plugin-ssr/plugin');
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
+ const vpvv = await import('@vite-plugin-vercel/vike');
+ return vpvv.default();
+ } catch (e) {
+ return null;
+ }
}
}
diff --git a/packages/vercel/tsup.config.ts b/packages/vercel/tsup.config.ts
index 0ea6fe3..dbb5082 100644
--- a/packages/vercel/tsup.config.ts
+++ b/packages/vercel/tsup.config.ts
@@ -3,7 +3,7 @@ import { defineConfig } from 'tsup';
export default defineConfig([
{
entry: ['./src/index.ts'],
- external: ['esbuild', 'vite-plugin-ssr'],
+ external: ['esbuild', 'vike'],
format: ['esm', 'cjs'],
platform: 'node',
target: 'node16',
diff --git a/packages/vike-integration/+config.h.ts b/packages/vike-integration/+config.h.ts
index c98c87d..c9a48eb 100644
--- a/packages/vike-integration/+config.h.ts
+++ b/packages/vike-integration/+config.h.ts
@@ -1,4 +1,4 @@
-import type { Config } from 'vite-plugin-ssr/types';
+import type { Config } from 'vike/types';
export default {
meta: {
diff --git a/packages/vike-integration/CHANGELOG.md b/packages/vike-integration/CHANGELOG.md
index e196634..bae1244 100644
--- a/packages/vike-integration/CHANGELOG.md
+++ b/packages/vike-integration/CHANGELOG.md
@@ -4,7 +4,7 @@
### Patch Changes
-- Add support for vite-plugin-ssr V1 design
+- Add support for vike V1 design
## 0.3.2
@@ -28,7 +28,7 @@
### Patch Changes
-- fix use case without vite-plugin-ssr
+- fix use case without vike
## 0.2.0
@@ -74,7 +74,7 @@
### Minor Changes
-- Support for vite-plugin-ssr@0.4.x
+- Support for vike@0.4.x
### Patch Changes
@@ -108,7 +108,7 @@
### Patch Changes
-- isr config can now be overriden when using vite-plugin-ssr integration
+- isr config can now be overriden when using vike integration
## 0.0.4
@@ -126,4 +126,4 @@
### Patch Changes
-- Create a dedicated package for vite-plugin-ssr integration
+- Create a dedicated package for vike integration
diff --git a/packages/vike-integration/README.md b/packages/vike-integration/README.md
index 4d350e0..58101a8 100644
--- a/packages/vike-integration/README.md
+++ b/packages/vike-integration/README.md
@@ -1,17 +1,17 @@
# @vite-plugin-vercel/vike
-[`vite-plugin-ssr`](https://github.com/brillout/vite-plugin-ssr) integration for `vite-plugin-vercel`.
+[`vike`](https://github.com/vikejs/vike) integration for `vite-plugin-vercel`.
-- Versions `>=0.3.3` are compatible with vite-plugin-ssr@0.4.x and above
-- Versions `0.1.x` are compatible with vite-plugin-ssr@0.4.x
-- Versions `0.0.x` are compatible with vite-plugin-ssr@0.3.x
+- Versions `>=0.3.3` are compatible with vike@0.4.x and above
+- Versions `0.1.x` are compatible with vike@0.4.x
+- Versions `0.0.x` are compatible with vike@0.3.x
## Features
- [Support for ISR/Prerender Functions](#isrprerender-functions)
-- [Route strings](https://vite-plugin-ssr.com/route-string) and [filesystem routing](https://vite-plugin-ssr.com/filesystem-routing) are compiled to [routes rules](https://vercel.com/docs/build-output-api/v3#build-output-configuration/supported-properties/routes)
-- A Serverless Function is created by default to handle SSR route. No need to [manually create it](https://github.com/brillout/vite-plugin-ssr_vercel/blob/main/api/ssr.js)
- - If you need to customize the Function, [some helpers are available](#custom-serverless-function-for-vite-plugin-ssr)
+- [Route strings](https://vike.dev/route-string) and [filesystem routing](https://vike.dev/filesystem-routing) are compiled to [routes rules](https://vercel.com/docs/build-output-api/v3#build-output-configuration/supported-properties/routes)
+- A Serverless Function is created by default to handle SSR route. No need to [manually create it](https://github.com/vikejs/vike_vercel/blob/main/api/ssr.js)
+ - If you need to customize the Function, [some helpers are available](#custom-serverless-function-for-vike)
## Usage
@@ -22,7 +22,7 @@ Install `vite-plugin-vercel` and `@vite-plugin-vercel/vike` and make sure only `
```ts
// vite.config.ts
import { defineConfig } from 'vite';
-import ssr from 'vite-plugin-ssr/plugin';
+import ssr from 'vike/plugin';
import vercel from 'vite-plugin-vercel';
export default defineConfig(async ({ command, mode }) => {
@@ -36,9 +36,9 @@ export default defineConfig(async ({ command, mode }) => {
Official documentation: https://vercel.com/docs/build-output-api/v3/primitives#prerender-functions
-:warning: Pages with [route function](https://vite-plugin-ssr.com/route-function) are not compatible with ISR. A warning will be shown if this occurs.
+:warning: Pages with [route function](https://vike.dev/route-function) are not compatible with ISR. A warning will be shown if this occurs.
-#### vite-plugin-ssr 0.4.x
+#### vike 0.4.x
Take any of your `.page` file (not `.page.server`) and add the following export:
@@ -48,12 +48,12 @@ Take any of your `.page` file (not `.page.server`) and add the following export:
export const isr = { expiration: 15 };
```
-#### vite-plugin-ssr V1 design
+#### vike V1 design
-Take any of your [page config file](https://vite-plugin-ssr.com/config), and add the following configuration:
+Take any of your [page config file](https://vike.dev/config), and add the following configuration:
```ts
-import type { Config } from 'vite-plugin-ssr/types';
+import type { Config } from 'vike/types';
export default {
// Now this page is a Prerender Function, meaning that it will be cached on Edge network for 15 seconds.
@@ -62,14 +62,14 @@ export default {
} satisfies Config;
```
-### Custom Serverless Function for vite-plugin-ssr
+### Custom Serverless Function for vike
By default, a Serverless Function is created to handle all SSR routes.
If for any reason you need to customize it, some tools are available:
```ts
import type { VercelRequest, VercelResponse } from '@vercel/node';
-import { renderPage } from 'vite-plugin-ssr/server';
+import { renderPage } from 'vike/server';
import {
getDefaultEmptyResponseHandler,
// higly recommended to use at least this one, as it handles some internals
diff --git a/packages/vike-integration/config.d.ts b/packages/vike-integration/config.d.ts
index fc3d7f2..9974901 100644
--- a/packages/vike-integration/config.d.ts
+++ b/packages/vike-integration/config.d.ts
@@ -1,4 +1,4 @@
-import 'vite-plugin-ssr/types';
+import 'vike/types';
// When this is imported by a projet ->
// import config from '@vite-plugin-vercel/vike/config'
diff --git a/packages/vike-integration/package.json b/packages/vike-integration/package.json
index 78eafff..824c4d3 100644
--- a/packages/vike-integration/package.json
+++ b/packages/vike-integration/package.json
@@ -9,13 +9,13 @@
"helpers.js",
"config.js"
],
- "description": "Use vite-plugin-ssr with vite-plugin-vercel",
+ "description": "Use vike with vite-plugin-vercel",
"author": "Joël Charles ",
"repository": "https://github.com/magne4000/vite-plugin-vercel",
- "main": "./dist/vite-plugin-ssr.js",
- "types": "./dist/vite-plugin-ssr.d.ts",
+ "main": "./dist/vike.js",
+ "types": "./dist/vike.d.ts",
"exports": {
- ".": "./dist/vite-plugin-ssr.js",
+ ".": "./dist/vike.js",
"./helpers": "./dist/templates/helpers.js",
"./config": {
"types": "./config.d.ts",
@@ -35,7 +35,7 @@
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"vite": "^4.4.9",
- "vite-plugin-ssr": "^0.4.141",
+ "vike": "^0.4.142",
"vite-plugin-vercel": "workspace:*"
},
"dependencies": {
@@ -44,7 +44,7 @@
},
"peerDependencies": {
"vite": "^4.4.9",
- "vite-plugin-ssr": "*"
+ "vike": "*"
},
"license": "MIT"
}
diff --git a/packages/vike-integration/templates/helpers.ts b/packages/vike-integration/templates/helpers.ts
index 01cc774..0d4b02e 100644
--- a/packages/vike-integration/templates/helpers.ts
+++ b/packages/vike-integration/templates/helpers.ts
@@ -1,6 +1,6 @@
import { VercelRequest, VercelResponse } from '@vercel/node';
import { parse } from 'querystring';
-import type { renderPage } from 'vite-plugin-ssr';
+import type { renderPage } from 'vike';
type HttpResponse = NonNullable<
Awaited>['httpResponse']
diff --git a/packages/vike-integration/templates/ssr_.template.ts b/packages/vike-integration/templates/ssr_.template.ts
index a9ecd3d..eefb3a3 100644
--- a/packages/vike-integration/templates/ssr_.template.ts
+++ b/packages/vike-integration/templates/ssr_.template.ts
@@ -1,5 +1,5 @@
import type { VercelRequest, VercelResponse } from '@vercel/node';
-import { renderPage } from 'vite-plugin-ssr/server';
+import { renderPage } from 'vike/server';
import {
getDefaultEmptyResponseHandler,
getDefaultPageContextInit,
diff --git a/packages/vike-integration/tsup.config.ts b/packages/vike-integration/tsup.config.ts
index a4f2312..728258e 100644
--- a/packages/vike-integration/tsup.config.ts
+++ b/packages/vike-integration/tsup.config.ts
@@ -5,18 +5,14 @@ import { existsSync } from 'node:fs';
export default defineConfig([
{
clean: true,
- entry: ['./vite-plugin-ssr.ts', './templates/helpers.ts', './+config.h.ts'],
- external: ['esbuild', 'rollup', 'vite', 'vite-plugin-ssr'],
+ entry: ['./vike.ts', './templates/helpers.ts', './+config.h.ts'],
+ external: ['esbuild', 'rollup', 'vite', 'vike'],
format: ['esm'],
platform: 'node',
target: 'node16',
dts: {
- entry: [
- './vite-plugin-ssr.ts',
- './templates/helpers.ts',
- './+config.h.ts',
- ],
+ entry: ['./vike.ts', './templates/helpers.ts', './+config.h.ts'],
},
async onSuccess() {
// rollup-plugin-dts chooses to rename things its way
diff --git a/packages/vike-integration/vite-plugin-ssr.ts b/packages/vike-integration/vike.ts
similarity index 93%
rename from packages/vike-integration/vite-plugin-ssr.ts
rename to packages/vike-integration/vike.ts
index fff4003..ca045d7 100644
--- a/packages/vike-integration/vite-plugin-ssr.ts
+++ b/packages/vike-integration/vike.ts
@@ -1,22 +1,22 @@
-import { prerender as prerenderCli } from 'vite-plugin-ssr/prerender';
+import { prerender as prerenderCli } from 'vike/prerender';
import fs from 'fs/promises';
import path from 'path';
import { fileURLToPath } from 'url';
import { normalizePath, Plugin, ResolvedConfig, UserConfig } from 'vite';
-import type { PageContextBuiltInServer } from 'vite-plugin-ssr/types';
+import type { PageContextBuiltInServer } from 'vike/types';
import type {
VercelOutputIsr,
ViteVercelApiEntry,
ViteVercelPrerenderFn,
ViteVercelPrerenderRoute,
} from 'vite-plugin-vercel';
-import 'vite-plugin-ssr/__internal/setup';
+import 'vike/__internal/setup';
import {
getPagesAndRoutes,
PageFile,
PageRoutes,
route,
-} from 'vite-plugin-ssr/__internal';
+} from 'vike/__internal';
import { nanoid } from 'nanoid';
import { getParametrizedRoute } from './route-regex';
import { newError } from '@brillout/libassert';
@@ -162,7 +162,7 @@ export const prerender: ViteVercelPrerenderFn = async (
const isr = assertIsr(resolvedConfig, pageContext.exports);
- // bypass this check https://github.com/brillout/vite-plugin-ssr/blob/dcc91ac31824ca3240c107380789209d52d0dff9/vite-plugin-ssr/shared/addComputedUrlProps.ts#L25
+ // bypass this check https://github.com/vikejs/vike/blob/dcc91ac31824ca3240c107380789209d52d0dff9/vike/shared/addComputedUrlProps.ts#L25
delete (pageContext as any).urlPathname;
delete (pageContext as any).urlParsed;
@@ -268,7 +268,7 @@ export async function getSsrEndpoint(
export interface Options {
/**
- * A pattern that matches each incoming pathname that should be caught by vite-plugin-ssr.
+ * A pattern that matches each incoming pathname that should be caught by vike.
* As this rule is inserted last, a simple catch-all rule excluding /api/* should be enough.
* Defaults to `(?!/api).*`
* @see {@link https://vercel.com/docs/project-configuration#project-configuration/rewrites}
@@ -281,7 +281,7 @@ export function vitePluginSsrVercelPlugin(options: Options = {}): Plugin {
name: libName,
apply: 'build',
async config(userConfig): Promise {
- // wait for vite-plugin-ssr second build step with `ssr` flag
+ // wait for vike second build step with `ssr` flag
if (!userConfig.build?.ssr) return {};
const additionalEndpoints = userConfig.vercel?.additionalEndpoints
@@ -387,20 +387,9 @@ export function vitePluginVercelVpsIsrPlugin(): Plugin {
simplePageConfig[k] = v.value;
}
- const files = await pageConfig.loadCodeFiles();
-
- const _page = files.find(
- (f) => f.configName === 'Page' && f.isPlusFile,
- );
-
- assert(
- _page && _page.isPlusFile,
- `Cannot find page ${pageId}. Contact the vite-plugin-vercel maintainer on GitHub / Discord`,
- );
-
page = {
config: simplePageConfig,
- filePath: _page.codeFilePath,
+ filePath: pageConfig.pageId,
};
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c7de6e4..5053c71 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -80,12 +80,12 @@ importers:
typescript:
specifier: ^5.2.2
version: 5.2.2
+ vike:
+ specifier: ^0.4.142
+ version: 0.4.142(vite@4.4.9)
vite:
specifier: ^4.4.9
version: 4.4.9(@types/node@20.5.9)
- vite-plugin-ssr:
- specifier: ^0.4.141
- version: 0.4.141(vite@4.4.9)
vite-plugin-vercel:
specifier: workspace:*
version: link:../../packages/vercel
@@ -129,12 +129,12 @@ importers:
typescript:
specifier: ^5.2.2
version: 5.2.2
+ vike:
+ specifier: ^0.4.142
+ version: 0.4.142(vite@4.4.9)
vite:
specifier: ^4.4.9
version: 4.4.9(@types/node@16.18.48)
- vite-plugin-ssr:
- specifier: ^0.4.141
- version: 0.4.141(vite@4.4.9)
vite-plugin-vercel:
specifier: workspace:*
version: link:../../packages/vercel
@@ -225,12 +225,12 @@ importers:
typescript:
specifier: ^5.2.2
version: 5.2.2
+ vike:
+ specifier: ^0.4.142
+ version: 0.4.142(vite@4.4.9)
vite:
specifier: ^4.4.9
version: 4.4.9(@types/node@16.18.48)
- vite-plugin-ssr:
- specifier: ^0.4.141
- version: 0.4.141(vite@4.4.9)
packages/vike-integration:
dependencies:
@@ -253,12 +253,12 @@ importers:
typescript:
specifier: ^5.2.2
version: 5.2.2
+ vike:
+ specifier: ^0.4.142
+ version: 0.4.142(vite@4.4.9)
vite:
specifier: ^4.4.9
version: 4.4.9(@types/node@16.18.48)
- vite-plugin-ssr:
- specifier: ^0.4.141
- version: 0.4.141(vite@4.4.9)
vite-plugin-vercel:
specifier: workspace:*
version: link:../vercel
@@ -6593,30 +6593,8 @@ packages:
vfile-message: 3.1.4
dev: false
- /vite-node@0.34.3(@types/node@20.5.9):
- resolution: {integrity: sha512-+0TzJf1g0tYXj6tR2vEyiA42OPq68QkRZCu/ERSo2PtsDJfBpDyEfuKbRvLmZqi/CgC7SCBtyC+WjTGNMRIaig==}
- engines: {node: '>=v14.18.0'}
- hasBin: true
- dependencies:
- cac: 6.7.14
- debug: 4.3.4
- mlly: 1.4.2
- pathe: 1.1.1
- picocolors: 1.0.0
- vite: 4.4.9(@types/node@20.5.9)
- transitivePeerDependencies:
- - '@types/node'
- - less
- - lightningcss
- - sass
- - stylus
- - sugarss
- - supports-color
- - terser
- dev: true
-
- /vite-plugin-ssr@0.4.141(vite@4.4.9):
- resolution: {integrity: sha512-mRYP7CWauioeCFWFhzNjYK/4Gv+mtfClM4oj5NZrHS3kmd2vQ/uHENOSccFZniqRTZoMzQoufqpGTd+1uT9vEg==}
+ /vike@0.4.142(vite@4.4.9):
+ resolution: {integrity: sha512-eciryBs3k29SwSQM2esZzjt9Fyig/tNAgQ5xlduw9XVNUnd1hdWPr8CBi7yzvWgeavggPmywbt+Da1OLBoO8Kg==}
engines: {node: '>=16.0.0'}
hasBin: true
peerDependencies:
@@ -6640,6 +6618,28 @@ packages:
source-map-support: 0.5.21
vite: 4.4.9(@types/node@20.5.9)
+ /vite-node@0.34.3(@types/node@20.5.9):
+ resolution: {integrity: sha512-+0TzJf1g0tYXj6tR2vEyiA42OPq68QkRZCu/ERSo2PtsDJfBpDyEfuKbRvLmZqi/CgC7SCBtyC+WjTGNMRIaig==}
+ engines: {node: '>=v14.18.0'}
+ hasBin: true
+ dependencies:
+ cac: 6.7.14
+ debug: 4.3.4
+ mlly: 1.4.2
+ pathe: 1.1.1
+ picocolors: 1.0.0
+ vite: 4.4.9(@types/node@20.5.9)
+ transitivePeerDependencies:
+ - '@types/node'
+ - less
+ - lightningcss
+ - sass
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ dev: true
+
/vite@4.4.9(@types/node@14.18.33):
resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==}
engines: {node: ^14.18.0 || >=16.0.0}