Skip to content

Commit

Permalink
chore: prepared repo for deployment in netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigofariow committed Jul 14, 2021
1 parent ddd584b commit 767cc1a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[build]
command = "yarn rw deploy netlify"
publish = "web/dist"
functions = "api/dist/functions"

[dev]
# To use [Netlify Dev](https://www.netlify.com/products/dev/),
# install netlify-cli from https://docs.netlify.com/cli/get-started/#installation
# and then use netlify link https://docs.netlify.com/cli/get-started/#link-and-unlink-sites
# to connect your local project to a site already on Netlify
# then run netlify dev and our app will be accessible on the port specified below
framework = "redwoodjs"
# Set targetPort to the [web] side port as defined in redwood.toml
targetPort = 8910
# Point your browser to this port to access your RedwoodJS app
port = 8888

[[redirects]]
from = "/*"
to = "/index.html"
status = 200
2 changes: 1 addition & 1 deletion redwood.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[web]
port = 8910
apiProxyPath = "/.redwood/functions"
apiProxyPath = "/.netlify/functions"
[api]
port = 8911
[browser]
Expand Down

0 comments on commit 767cc1a

Please sign in to comment.