Google Cloud Run Middleware
Qwik City Cloud Run middleware allows you to run a Qwik City app Google Cloud Run
To integrate the
Cloud Run adapter, use the
npm run qwik add cloud-run
To build the application for production, use the
build command, this command will automatically run
npm run build.server and
npm run build.client:
npm run build
npm run build you will have 2 build folders.
distfolder will be created including all the static files.
serverfolder will be created including all node server files.
To deploy your app, you need to:
Have a Google Cloud account
If you don't have gcloud, follow Google Cloud's official documentation.
Authenticate with the
To authenticate the
gcloudCLI, run this command:
gcloud auth login
Grant the SDK access to the account you created in step 1.
Change the name of the deploy script
Update the name of your Cloud Run app in the deploy script in your package.json.
"deploy": "gcloud run deploy my-cloud-run-app --source ."
Run deploy script
Deploy to Google Cloud Run with:
npm run deploy