-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathnetlify.js
32 lines (27 loc) · 946 Bytes
/
netlify.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { getConfig } from '../../../../lib'
const config = getConfig()
export const NETLIFY_TOML = `\
[build]
command = "yarn rw deploy netlify"
publish = "web/dist"
functions = "api/dist/functions"
[build.environment]
NODE_VERSION = "20"
[[redirects]]
from = "/*"
to = "/200.html"
status = 200
# To use Netlify Dev, install Netlify's CLI (\`netlify-cli\`) from NPM and use \`netlify link\`
# to connect your local project to a site on Netlify. Then run \`netlify dev\`.
#
# Quick links to the docs:
# - Netlfy Dev https://www.netlify.com/products/dev
# - Netlify's CLI https://docs.netlify.com/cli/get-started/#installation
# - \`netlify link\` https://docs.netlify.com/cli/get-started/#link-and-unlink-sites
[dev]
framework = "redwoodjs"
# Make sure \`targetPort\` matches \`web.port\` in the \`redwood.toml\`:
targetPort = ${config.web.port}
# Point your browser to this port to access your app:
port = 8888
`