MCPcopy
hub / github.com/vitejs/vite / previewConfig

Function previewConfig

packages/vite/src/node/__tests__/config.spec.ts:984–991  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

982 })
983
984 const previewConfig = () => ({
985 port: 3006,
986 strictPort: false,
987 open: false,
988 host: false,
989 proxy: { '/bar': 'http://localhost:3010' },
990 cors: false,
991 })
992
993 test('preview overrides server config', async () => {
994 const config: InlineConfig = {

Callers 1

config.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected