Ensure these environment variables are set in your application's configuration:
PGSSLMODE=require
API_PREFIX=/api/v1
Note the API_PREFIX
, which differs from prior backend projects.
Add PostgreSQL support via the "Heroku Postgres" plugin - as is done normally via prior backend work.
See Heroku deployment notes for now this is done.
Connect to GitHub as you normally would for backend work.
See Heroku deployment notes for now this is done.
server/app.ts
(or .js
, depending on your configuration) uses
express.static
, which hosts the files under public
as static assets, much
like Netlify would.
The public
directory itself is populated by Webpack - see the output
section
of your webpack.config.js
for how this is indicated.