diff --git a/examples/hono-react-vercel-edge/vite.config.js b/examples/hono-react-vercel-edge/vite.config.js index 7d8c786..061c53c 100644 --- a/examples/hono-react-vercel-edge/vite.config.js +++ b/examples/hono-react-vercel-edge/vite.config.js @@ -10,7 +10,7 @@ export default { entry: { index: 'server/node-entry.js', app: { - path: 'server/app.js', + entry: 'server/app.js', runtime: 'vercel' } } diff --git a/packages/vike-node/src/plugin/plugins/edgePlugin.ts b/packages/vike-node/src/plugin/plugins/edgePlugin.ts index 5e17779..e321a63 100644 --- a/packages/vike-node/src/plugin/plugins/edgePlugin.ts +++ b/packages/vike-node/src/plugin/plugins/edgePlugin.ts @@ -1,9 +1,9 @@ -import esbuild from 'esbuild' -import fs from 'fs/promises' import { builtinModules } from 'module' import { gzip } from 'node:zlib' import path from 'path' import { promisify } from 'util' +import esbuild from 'esbuild' +import fs from 'fs/promises' import { prerender } from 'vike/prerender' import type { Plugin, ResolvedConfig } from 'vite' import type { ConfigVikeNodeResolved, Runtime } from '../../types.js' diff --git a/packages/vike-node/src/plugin/plugins/serverEntryPlugin.ts b/packages/vike-node/src/plugin/plugins/serverEntryPlugin.ts index a4cc482..34cd1db 100644 --- a/packages/vike-node/src/plugin/plugins/serverEntryPlugin.ts +++ b/packages/vike-node/src/plugin/plugins/serverEntryPlugin.ts @@ -1,13 +1,13 @@ -import pc from '@brillout/picocolors' import { createRequire } from 'module' import path from 'path' +import pc from '@brillout/picocolors' +import type { ConfigVitePluginServerEntry } from 'vike/types' import type { Plugin, ResolvedConfig } from 'vite' import type { EntryResolved } from '../../types.js' import { assert, assertUsage } from '../../utils/assert.js' import { getConfigVikeNode } from '../utils/getConfigVikeNode.js' import { injectRollupInputs } from '../utils/injectRollupInputs.js' import { viteIsSSR } from '../utils/viteIsSSR.js' -import type { ConfigVitePluginServerEntry } from 'vike/types' const require_ = createRequire(import.meta.url) @@ -49,9 +49,6 @@ export function serverEntryPlugin(): Plugin { config ) } - - config.vitePluginServerEntry ??= {} - config.vitePluginServerEntry.inject = Object.keys(resolvedEntries) } } }