Skip to content

Commit

Permalink
Merge pull request #255 from moul/dev/moul/netlify
Browse files Browse the repository at this point in the history
feat: configure netlify
  • Loading branch information
moul authored Mar 3, 2020
2 parents 637f559 + e7c2baa commit 13fd9bc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions web/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[build]
base = "web/"
publish = "web/dist"
command = "npm install && npm run build && ls -laR dist/"
ignore = "git diff --quiet HEAD^ HEAD -- ."

[build.environment]
YARN_FLAGS = "--no-ignore-optional"
API_URL = "https://depviz-demo.moul.io/api"

[context.production.environment]
API_URL = "https://depviz-demo.moul.io/api"
1 change: 1 addition & 0 deletions web/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default {
},
plugins: [
new Dotenv({
systemvars: true,
path: './.env.dev'
}),
new webpack.HotModuleReplacementPlugin(),
Expand Down
1 change: 1 addition & 0 deletions web/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default {
},
plugins: [
new Dotenv({
systemvars: true,
path: './.env.prod'
}),

Expand Down

0 comments on commit 13fd9bc

Please sign in to comment.