Skip to content

Instantly share code, notes, and snippets.

@andreluialves
Forked from luizcalaca/deploy-react-heroku.md
Created February 7, 2023 15:52
Show Gist options
  • Select an option

  • Save andreluialves/bfd7da6eca8e8dd84bc37922cb97226c to your computer and use it in GitHub Desktop.

Select an option

Save andreluialves/bfd7da6eca8e8dd84bc37922cb97226c to your computer and use it in GitHub Desktop.

Frontend

Colocar a variável de ambiente no API_ENDPOINT no arquivo App.js do frontend

const API_ENDPOINT = 'https://backend-supabase.herokuapp.com/users';

Criação do app no heroku

heroku apps:create --app frontend-supabase

Fazer o Deploy

git push heroku main

Desabilitar regra do Eslint

    "rules": {
        "react/jsx-curly-spacing": "off"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment