autoDevBase

TIP

After startup, automatically set base to current IP+port path like base = http://127.0.0.1:8080/ and fix ws for proxy debugging

  • Type: boolean
  • Default: false
emp-config.js
import {defineConfig} from '@empjs/cli'
export default defineConfig(store => {
  return {
    autoDevBase:true
  }
})

Purpose

Facilitate remote access to proxy tools for debugging, no need for proxy or embedding debug tools into the page, which affects aesthetics

目录