forked from Ivasoft/geovisio-website
disable overlay
This commit is contained in:
1
.env.d.ts
vendored
1
.env.d.ts
vendored
@@ -1,6 +1,5 @@
|
||||
interface ImportMetaEnv {
|
||||
VITE_API_URL?: string
|
||||
VITE_NODE_ENV?: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
VITE_API_URL=https://my-instance.com
|
||||
VITE_NODE_ENV=production
|
||||
NPM_CONFIG_PRODUCTION=false
|
||||
YARN_PRODUCTION=false
|
||||
@@ -4,18 +4,14 @@ import vue from '@vitejs/plugin-vue'
|
||||
import eslintPlugin from 'vite-plugin-eslint'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default ({ mode }: { mode: any }) => {
|
||||
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) }
|
||||
return defineConfig({
|
||||
defineConfig({
|
||||
server: {
|
||||
host: true,
|
||||
port: 5173,
|
||||
hmr:
|
||||
process.env.VITE_NODE_ENV === 'development'
|
||||
? {
|
||||
port: 9000
|
||||
hmr: {
|
||||
port: 9000,
|
||||
overlay: false
|
||||
}
|
||||
: false
|
||||
},
|
||||
base: '/',
|
||||
plugins: [vue(), eslintPlugin()],
|
||||
@@ -32,5 +28,4 @@ export default ({ mode }: { mode: any }) => {
|
||||
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js'
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user