2019-08-19 11:09:17 +00:00
|
|
|
# Global settings applied to the whole site.
|
|
|
|
|
#
|
|
|
|
|
# “base” is the directory to change to before starting build. If you set base:
|
|
|
|
|
# that is where we will look for package.json/.nvmrc/etc, not repo root!
|
|
|
|
|
# “command” is your build command.
|
|
|
|
|
# “publish” is the directory to publish (relative to the root of your repo).
|
|
|
|
|
|
|
|
|
|
[build]
|
|
|
|
|
base = "client"
|
|
|
|
|
command = "npm run build"
|
2023-10-10 19:21:43 +00:00
|
|
|
publish = "client/dist"
|
|
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
|
from = "/js/script.js"
|
|
|
|
|
to = "https://plausible.io/js/script.js"
|
2023-10-10 20:10:37 +00:00
|
|
|
status = 200
|
2023-10-10 20:13:04 +00:00
|
|
|
force = true
|
2023-10-10 19:21:43 +00:00
|
|
|
|
|
|
|
|
[[redirects]]
|
|
|
|
|
from = "/api/event"
|
|
|
|
|
to = "https://plausible.io/api/event"
|
2023-10-10 20:10:37 +00:00
|
|
|
status = 200
|
2023-10-10 20:13:04 +00:00
|
|
|
force = true
|