Home > Web Front-end > JS Tutorial > Deno Deploy: Deploy a React App

Deno Deploy: Deploy a React App

Susan Sarandon
Release: 2024-10-28 14:13:30
Original
568 people have browsed it

Deno Deploy: Deploy a React App

Deploying a react application using Deno Deploy is very simple if you have created an account in deno deploy (https://deno.com/deploy)

  • Create a react application using vite (vite.dev)
npm create vite@latest
Copy after login
  • Run build command to generate simple html, css, js files to deploy after your development process
npm run build
Copy after login
  • Run the below command inside dist folder to deploy the static files to deno deploy
deployctl deploy --project=<project-name> https://jsr.io/@std/http/1.0.9/file_server.ts
Copy after login
  • A new project will be created in deno deploy, and the files will be deployed in dev & prod domains.

Note:

  • After first deployment, all the deployments will happen only on dev domain, we have to manually promote the deployment to production

Happy coding!

The above is the detailed content of Deno Deploy: Deploy a React App. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template