![]() The wizard will run and will create a GitHub action in your repo in a. You will be prompted to designate which subscription key to use.įollow the wizard started by the extension to give your app a name, choose a framework preset, and designate the app root (usually /) and built file location /dist. Open the Static Web Apps extension, sign in to Azure, and click the '+' sign to create a new Static Web App. Install the extension in VS Code and navigate to your app root. The SWA Extension in Visual Studio Code. ![]() You can create a free Azure account here. An Azure account and a subscription key.You can quickly deploy your Vite app with Microsoft Azure Static Web Apps service. You can also deploy to a custom domain by adding surge dist. Yml # Simple workflow for deploying static content to GitHub Pages name : Deploy static content to Pages on : # Runs on pushes targeting the default branch push : branches : # Allows you to run this workflow manually from the Actions tab workflow_dispatch : # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages permissions : contents : read pages : write id-token : write # Allow one concurrent deployment concurrency : group : ' pages ' cancel-in-progress : true jobs : # Single deploy job since we're just deploying deploy : environment : name : github-pages url : $Īfter running npm run build, deploy using the command firebase deploy.įirst install surge, if you haven’t already.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |