Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 806 Bytes

File metadata and controls

25 lines (21 loc) · 806 Bytes
  • The project consists of React solutions for two examples from the first Serverless Functions project
    • Basic Setup
      • Uses the first project's serverless function directly
    • Airtable
      • Uses a locally deployed copy of the first project's serverless function.

Netlify TOML for create-react-app

[build]

  • command = 'npm run build'
  • publish = '/build'
  • functions = './functions'

[[redirects]]

  • from = '/api/*'
  • to = '/.netlify/functions/:splat'
  • status = 200

[[redirects]]

  • from = '/*'
  • to = '/index.html'
  • status = 200

build Command

  • "build": "CI= react-scripts build"