nathan1658
nathan1658

Reputation: 323

Schedule Nuxt Static Site Generation and deploy on Azure

I'm using Nuxt3 to host my site. I want it to have a serverless architecture, that a schedule build for the static site generation, and deploy it on Azure Static Webapps/ Azure Storage.

In short, I'm looking for a way that the static site generation of nuxt3 and deployment to Azure blob storage/ static web app all happened on cloud, with a scheduler.

However, I'm not using Azure pipeline or Github for this project, is there a way to achieve this?

Thank you.

Upvotes: 0

Views: 385

Answers (1)

Sampath
Sampath

Reputation: 3614

Deploy Static web app to Azure Developer Center

According to the above, there are only ways

  • Git commit changes
  • Azure DevOps
  • Function API environment variables

AFIK, we can not create nextjs app in azure . but we can we can create and Deploy it azure Static web app

  • npm install nuxt and

  • Create a new app with npm init nuxt-app our app name

  • Deploy Nuxt sites with universal rendering on Azure Static Web Apps .

  • npm run dev -- -o

In local:

enter image description here

  • Add a README file and git pull so it genereates yml file
  • create a Static web app with git _App location_ is / _Api location_ is .output/server`` _Output location_ is .output/public.
  • Use the Reference staticwebdev/nuxt-3-starter
  • Click on Browse

enter image description here

  • Refer to this Upload image to Blob Storage JavaScript on Azure .

Upvotes: 0

Related Questions