diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..a16d760 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,12 @@ +[build] +command = "yarn rw build && yarn rw db up --no-db-client --auto-approve && yarn rw dataMigrate up" +publish = "web/dist" +functions = "api/dist/functions" + +[dev] + command = "yarn rw dev" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 diff --git a/redwood.toml b/redwood.toml index 1001684..4022418 100644 --- a/redwood.toml +++ b/redwood.toml @@ -7,7 +7,7 @@ [web] port = 8910 - apiProxyPath = "/.redwood/functions" + apiProxyPath = "/.netlify/functions" [api] port = 8911 [browser]