Skip to content

Commit

Permalink
build: 修复 CNAME 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
heiyexing committed Jul 14, 2022
1 parent 06110ea commit 6d803a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { defineConfig } from 'dumi';

const isProduction = process.env.NODE_ENV === 'production';

export default defineConfig({
title: 'L7Draw',
favicon:
Expand Down Expand Up @@ -56,5 +58,7 @@ export default defineConfig({
devServer: {
port: 8080,
},
copy: isProduction ? ['docs/CNAME'] : [],
devtool: isProduction ? false : 'eval',
// more config: https://d.umijs.org/config
});
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
l7draw.antv.vision

0 comments on commit 6d803a4

Please sign in to comment.