diff --git a/examples/nextjs/next.config.js b/examples/nextjs/next.config.js index 3d3bc9990d..7acbdb8ea3 100755 --- a/examples/nextjs/next.config.js +++ b/examples/nextjs/next.config.js @@ -2,6 +2,12 @@ const nextConfig = { reactStrictMode: true, swcMinify: true, + output: "export", + distDir: 'out', + images: { + unoptimized: true + }, + assetPrefix: './', }; module.exports = nextConfig; diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index fa7ca7bfca..b218508400 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -10,7 +10,8 @@ "test": "jest --watch", "test:ci": "jest --ci", "create-app-definition": "contentful-app-scripts create-app-definition", - "add-locations": "contentful-app-scripts add-locations" + "add-locations": "contentful-app-scripts add-locations", + "upload": "contentful-app-scripts upload --bundle-dir out" }, "dependencies": { "@contentful/app-sdk": "4.22.0",