Skip to content

Nuxt3 static #1250

Answered by anderaus
SveinnB asked this question in Q&A
Discussion options

You must be logged in to vote

hi @SveinnB, I just set this up for a very simple Nuxt 3 project and it seems to be working well.

The default output location for yarn generate is .output/public, not dist, so unless you're reconfigured it it's probably wrong in your yaml file. This worked well for me:

app_location: "/"
api_location: ""
output_location: ".output/public"
app_build_command: yarn generate

Also, since I wanted to use node > 18 (default for Azure is currently v16) when building, I had to add this to my package.json:

"engines": {
  "node": ">=18.0.0"
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomasgauvin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants