Skip to content

Commit

Permalink
fix: examples
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Oct 16, 2024
1 parent bef8b89 commit 05aa8d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/hono-react-vercel-edge/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
entry: {
index: 'server/node-entry.js',
app: {
path: 'server/app.js',
entry: 'server/app.js',
runtime: 'vercel'
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/vike-node/src/plugin/plugins/edgePlugin.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
7 changes: 2 additions & 5 deletions packages/vike-node/src/plugin/plugins/serverEntryPlugin.ts
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -49,9 +49,6 @@ export function serverEntryPlugin(): Plugin {
config
)
}

config.vitePluginServerEntry ??= {}
config.vitePluginServerEntry.inject = Object.keys(resolvedEntries)
}
}
}

0 comments on commit 05aa8d6

Please sign in to comment.