Skip to content

Commit

Permalink
fix: default open editor to code, close #312
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 25, 2021
1 parent daa7322 commit 7d4224e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/slidev/node/server.ts
Expand Up @@ -10,6 +10,9 @@ export async function createServer(
const rawConfig = await resolveConfig({}, 'serve')
const pluginOptions = rawConfig.slidev || {}

// default open editor to code, #312
process.env.EDITOR = process.env.EDITOR || 'code'

const server = await createViteServer(
mergeConfig(
viteConfig,
Expand Down

0 comments on commit 7d4224e

Please sign in to comment.