From 75a83a7d92a0a19e06d5e54a690a6ffe5baa4eb1 Mon Sep 17 00:00:00 2001 From: Rob Cameron Date: Mon, 7 Dec 2020 17:37:36 -0800 Subject: [PATCH] yarn rw g deploy netlify --- netlify.toml | 12 ++++++++++++ redwood.toml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 netlify.toml 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 568e730..ef7810d 100644 --- a/redwood.toml +++ b/redwood.toml @@ -7,7 +7,7 @@ [web] port = 8910 - apiProxyPath = "/.redwood/functions" + apiProxyPath = "/.netlify/functions" [api] port = 8911 schemaPath = "./api/db/schema.prisma"