<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Oliver Westbury</title>
    <description>The latest articles on DEV Community by Oliver Westbury (@oliverwestbury).</description>
    <link>https://dev.to/oliverwestbury</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F973897%2Fc283c48e-1ae2-4469-b83f-0fd82e187ef3.jpg</url>
      <title>DEV Community: Oliver Westbury</title>
      <link>https://dev.to/oliverwestbury</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oliverwestbury"/>
    <language>en</language>
    <item>
      <title>Upgrade Next 12 to 13 - Github build Deploy Next.js app - The root value has an unexpected property, target,</title>
      <dc:creator>Oliver Westbury</dc:creator>
      <pubDate>Wed, 11 Jan 2023 15:42:12 +0000</pubDate>
      <link>https://dev.to/oliverwestbury/upgrade-next-12-to-13-github-build-deploy-nextjs-app-the-root-value-has-an-unexpected-property-target-28no</link>
      <guid>https://dev.to/oliverwestbury/upgrade-next-12-to-13-github-build-deploy-nextjs-app-the-root-value-has-an-unexpected-property-target-28no</guid>
      <description>&lt;p&gt;Github build failed: - &lt;br&gt;
name: Deploy Next.js app &lt;br&gt;
run: npx &lt;a href="mailto:serverless@2.72.2"&gt;serverless@2.72.2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;aNA error: Error: Command failed with exit code 1: node_modules/.bin/next build warn - Invalid next.config.js options detected:&lt;/p&gt;

&lt;p&gt;The root value has an unexpected property, target, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, modularizeImports, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, skipMiddlewareUrlNormalize, skipTrailingSlashRedirect, staticPageGenerationTimeout, swcMinify, trailingSlash, transpilePackages, typescript, useFileSystemPublicRoutes, webpack).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/** @type {import('next').NextConfig} */
const headers = async () =&amp;gt; {
    return [
        {
            source: '/:path*',
            headers: [
                {
                    key: 'X-Content-Type-Options',
                    value: 'nosniff'
                },
                {
                    key: 'X-Frame-Options',
                    value: 'SAMEORIGIN'
                },

            ]
        }
    ]

}
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
transpilePackages: \['@ionic/react', '@ionic/core', '@stencil/core', 'ionicons'\],
async redirects() {
return \[
 {
    source: '/',
    destination: '/language',
    permanent: true
 }
\]
},
headers,
  images: {
    domains: \['media.graphcms.com', 'res.cloudinary.com', 
   'images.unsplash.com', 'media.graphassets.com'\],
  unoptimized: true,
}
};
module.exports = nextConfig;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Can anyone advice how to resolve this issue next 13? trying to fix/rewrite all day and no luck... cant find Target in anything. In case, local terminal: npm run build is passed.&lt;/p&gt;

&lt;p&gt;Thank you in advance.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>nextjs13</category>
    </item>
  </channel>
</rss>
