Skip to content

Commit

Permalink
add netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
manyuanrong committed Aug 12, 2019
1 parent 875acd6 commit 13b2459
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .netlify.toml
@@ -0,0 +1,15 @@
[build]
base = ""
command = "yarn build"
publish = "dist"

# [[redirects]]
# from = "/api/*"
# to = "http://"
# status = 200
# force = true

[[redirects]]
from = "/*"
to = "/index.html"
status = 200
2 changes: 0 additions & 2 deletions .umirc.ts
Expand Up @@ -3,8 +3,6 @@ import { IConfig } from 'umi-types';
// ref: https://umijs.org/config/
const config: IConfig = {
treeShaking: true,
publicPath: '/poster-generator/',
base: '/poster-generator/',
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
[
Expand Down

0 comments on commit 13b2459

Please sign in to comment.