From b5788379a354ab1f5b9da2cd5d73dab2cfc3338e Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Tue, 26 Apr 2022 07:32:23 -0700 Subject: [PATCH] add build netlify command and netlify.toml for token dapp (#302) --- apps/token/netlify.toml | 4 ++++ apps/token/project.json | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 apps/token/netlify.toml diff --git a/apps/token/netlify.toml b/apps/token/netlify.toml new file mode 100644 index 000000000..b87b8d3dd --- /dev/null +++ b/apps/token/netlify.toml @@ -0,0 +1,4 @@ +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 diff --git a/apps/token/project.json b/apps/token/project.json index 2105bb207..8fb8b6d24 100644 --- a/apps/token/project.json +++ b/apps/token/project.json @@ -65,6 +65,15 @@ "jestConfig": "apps/token/jest.config.js", "passWithNoTests": true } + }, + "build-netlify": { + "builder": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + "cp apps/token/netlify.toml netlify.toml", + "nx build token" + ] + } } }, "tags": []