Skip to content

Commit

Permalink
chore(docs): Netlify Configuration (#41)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
im-coder-lg authored Jan 8, 2022
1 parent 70df3a8 commit f4c7d67
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -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 ✨' "

1 comment on commit f4c7d67

@im-coder-lg
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sumeshir26 inspect Netlify and make sure latest builds are marked for production.

Please sign in to comment.