From f4c7d6757ac325005b0a38ea7557006ba45d62f3 Mon Sep 17 00:00:00 2001 From: LG <76845820+im-coder-lg@users.noreply.github.com> Date: Sat, 8 Jan 2022 18:32:36 +0530 Subject: [PATCH] chore(docs): Netlify Configuration (#41) * feat(docs,-netlify): Netlify Configuration Simple for now, but it _might_ get extensive later on. Will help us configure builds. * fix(netlify): Publish directory in Netlify TOML Just realized, publish dir is relative to basedir. --- netlify.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..36c1f9cd --- /dev/null +++ b/netlify.toml @@ -0,0 +1,17 @@ +# Settings in the [build] context are global and are applied to all contexts +# unless otherwise overridden by more specific contexts. +[build] + # Directory to change to before starting a build. + # This is where we will look for package.json/.nvmrc/etc. + # If not set, defaults to the root directory. + base = "docs/" + + # Directory that contains the deploy-ready HTML files and assets generated by + # the build. This is relative to the base directory if one has been set, or the + # root directory if a base has not been set. This sample publishes the + # directory located at the absolute path "root/project/build-output" + publish = "build/" + + # Default build command. + command = "yarn install && yarn build && echo 'Successful deploy ✨' " +