'How to deploy TypeScript express server to Google App Engine?

This is my app.yaml

`runtime: nodejs10
manual_scaling:
  instances: 1
resources:
  cpu: 4
  memory_gb: 16
  disk_size_gb: 10
handlers:
  - url: /
    static_files: client/build/index.html
    upload: client/build/index.html
  - url: /
    static_dir: client/build`

I am trying to deploy nodejs typescript express and react client to app engine, the handlers are directing to the react client.

In my node app I specified in the package.json

    "start": "node ./build/server.js",
"gcp-build": "tsc -p .",

when i deploy the application to GAE, the react client is working fine however the api is not seem to be running?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source