title: Deploy Nuxt.js SSR app to Azure App Service via Azure DevOps Pipelines
body: <p>I'm having trouble deploying a SSR Nuxt.js app from Azure DevOps Pipelines to Azure App Service.</p>
  
  <p>Disclaimers:
  ✅I have setup an Azure App Service with a Linux container.
  ✅I have added this to <code>nuxt.config.js</code></p>
  
  <pre><code>  server: {
      host: '0.0.0.0'
    }
  </code></pre>
  
  <p>In Azure DevOps Pipelines I copy over these files after the build:</p>
  
  <pre><code>.nuxt/**
  static/**
  package.json
  nuxt.config.js
  </code></pre>
  
  <p>then I zip them up as package.zip
  in the logs it shows it as successfully zipping the files but when I unzip the package none of the <code>.nuxt</code> files are present. I'm also confused that for some reason in the package.zip it puts all the build files in a folder named simply <code>a/</code></p>
  
  <p><a href="https://i.stack.imgur.com/UJEHK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UJEHK.jpg" alt="archiving files"></a>
  You can see in the photo that it's creating the 'a' folder at the top and that it looks like all the files are being added to the archive.
  When I unzip the package.zip the only files that are in there are:
   * package.json
   * nuxt.config.js
   * /static</p>
  
  <p><a href="https://i.stack.imgur.com/dW6hB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dW6hB.png" alt="unzipped files"></a></p>
  
  <p>this is what my YAML file looks like:</p>
  
  <pre><code>trigger:
  - master
  
  pool:
    vmImage: 'ubuntu-latest'
  
  steps:
  - task: NodeTool@0
    inputs:
      versionSpec: '12.x'
    displayName: 'Install Node.js'
  
  - script: |
      cd src/Web.Nuxt
      npm install
      npm run build
    displayName: 'npm install and build'
  
  - task: CopyFiles@2
    inputs:
      SourceFolder: '$(Build.SourcesDirectory)/src/Web.Nuxt'
      Contents: |
        .nuxt/**
        static/**
        package.json
        nuxt.config.js
      TargetFolder: '$(Build.ArtifactStagingDirectory)'
  
  - task: ArchiveFiles@2
    inputs:
      rootFolderOrFile: '$(Build.ArtifactStagingDirectory)'
      archiveType: 'zip'
      archiveFile: '$(Build.ArtifactStagingDirectory)/package.zip'
      replaceExistingArchive: true
  
  - task: PublishBuildArtifacts@1
    inputs:
      PathtoPublish: '$(Build.ArtifactStagingDirectory)/package.zip'
      ArtifactName: 'drop'
      publishLocation: 'Container'
  </code></pre>
  
  <p>Any help would be greatly appreciated that can set me back on course to deploying a SSR Next.app with Azure DevOps Pipelines, Azure App Service, and a Nuxt SSR app. This has been tough to troubleshoot because in Azure DevOps Pipelines and Releases it says that everything was a success.</p>