Skip to content

ArpadGBondor/John_Smilga-Serverless_Functions-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 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"